HackerRank icon indicating copy to clipboard operation
HackerRank copied to clipboard

HackerRank solutions in C#/Java/C++/Python

trafficstars

HackerRank

Solutions to problems on HackerRank.

If you are interested in helping or have a solution in a different language feel free to make a pull request.

Algorithms

Warmup

Title Solution Difficulty Points
Solve Me First
  • C#
  • C++
    Easy 1
    Simple Array Sum
    • C#
    • C++
    • Java
      Easy 10
      Compare the Triplets
      • C#
      • C++
        Easy 10
        A Very Big Sum
        • C#
        • C++
          Easy 10
          Diagonal Difference
          • C#
          • C++
            Easy 10
            Plus Minus
            • C#
            • C++
              Easy 10
              Staircase
              • C#
                Easy 10
                Mini-Max Sum
                • C#
                • C++
                  Easy 10
                  Time Conversion
                  • C#
                    Easy 15
                    Birthday Cake Candles
                    • C#
                    • C++
                      Easy 10

                      Implementation

                      Title Solution Difficulty Points
                      Grading Students
                      • C#
                        Easy 10
                        Apple and Orange
                        • C#
                          Easy 10
                          Kangaroo
                          • C#
                            Easy 10
                            Between Two Sets
                            • C#
                              Easy 10
                              Breaking the Records
                              • C#
                                Easy 10
                                Birthday Chocolate
                                • C#
                                  Easy 10
                                  Divisible Sum Pairs
                                  • C#
                                    Easy 10
                                    Migratory Birds
                                    • C#
                                      Easy 10
                                      Day of the Programmer
                                      • C#
                                        Easy 15
                                        Bon Appétit
                                        • C#
                                          Easy 10
                                          Sock Merchant
                                          • C#
                                            Easy 10
                                            Drawing Book
                                            • C#
                                              Easy 10
                                              Counting Valleys
                                              • C#
                                                Easy 15
                                                Electronics Shop
                                                • C#
                                                  Easy 15
                                                  Cats and a Mouse
                                                  • C#
                                                    Easy 15
                                                    Viral Advertising
                                                    • C#
                                                      Easy 15
                                                      Angry Professor
                                                      • C#
                                                        Easy 20
                                                        Find Digits
                                                        • C#
                                                          Easy 25
                                                          Designer PDF Viewer
                                                          • C#
                                                            Easy 20
                                                            Service Lane
                                                            • C#
                                                              Easy 20
                                                              The Hurdle Race
                                                              • C#
                                                                Easy 15
                                                                Beautiful Days at the Movies
                                                                • C#
                                                                  Easy 15
                                                                  Utopian Tree
                                                                  • C#
                                                                    Easy 20

                                                                    Strings

                                                                    Title Solution Difficulty Points
                                                                    Super Reduced String
                                                                    • C#
                                                                      Easy 10
                                                                      CamelCase
                                                                      • C#
                                                                        Easy 15
                                                                        Strong Password
                                                                        • C#
                                                                          Easy 15
                                                                          Alternating Characters
                                                                          • C#
                                                                            Easy 20
                                                                            HackerRank in a String!
                                                                            • C#
                                                                              Easy 20

                                                                              Sorting

                                                                              Title Solution Difficulty Points
                                                                              Intro to Tutorial Challenges
                                                                              • C#
                                                                                Easy 30
                                                                                Counting Sort 2
                                                                                • C#
                                                                                  Easy 30

                                                                                  Python

                                                                                  Introduction

                                                                                  Title Solution Difficulty Points
                                                                                  Say "Hello, World!" With Python
                                                                                  • Python 3
                                                                                    Easy 5
                                                                                    Arithmetic Operators
                                                                                    • Python 3
                                                                                      Easy 10
                                                                                      Python: Division
                                                                                      • Python 3
                                                                                        Easy 10
                                                                                        Write a function
                                                                                        • Python 3
                                                                                          Medium 10
                                                                                          Python If-Else
                                                                                          • Python 3
                                                                                            Easy 10
                                                                                            Loops
                                                                                            • Python 3
                                                                                              Easy 10
                                                                                              Print Function
                                                                                              • Python 3
                                                                                                Easy 20

                                                                                                Basic Data Types

                                                                                                Title Solution Difficulty Points
                                                                                                List Comprehensions
                                                                                                • Python 3
                                                                                                  Easy 10
                                                                                                  Find the Runner-Up Score!
                                                                                                  • Python 3
                                                                                                    Easy 10