Skip to content

gargi13832/Hackerrank-Problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackerrank-Problems-Solutions

Solutions to Hackerrank problems.

Following are the links to the problem statements:

1. Problem Solving

  1. Simple Array Sum - https://www.hackerrank.com/challenges/simple-array-sum/problem
  2. Plus Minus - https://www.hackerrank.com/challenges/plus-minus/problem
  3. Diagonal Difference - https://www.hackerrank.com/challenges/diagonal-difference/problem
  4. Compare the Triplets - https://www.hackerrank.com/challenges/compare-the-triplets/problem
  5. A very big sum - https://www.hackerrank.com/challenges/a-very-big-sum/problem
  6. Mini-Max Sum - https://www.hackerrank.com/challenges/mini-max-sum/problem
  7. Staircase - https://www.hackerrank.com/challenges/staircase/problem
  8. Birthday Cake Candles - https://www.hackerrank.com/challenges/birthday-cake-candles/problem
  9. Time Conversion - https://www.hackerrank.com/challenges/time-conversion/problem
  10. Grading Students - https://www.hackerrank.com/challenges/grading/problem
  11. Breaking the Records - https://www.hackerrank.com/challenges/breaking-best-and-worst-records/problem
  12. Divisible Sum Pairs - https://www.hackerrank.com/challenges/divisible-sum-pairs/problem
  13. Migratory Birds - https://www.hackerrank.com/challenges/migratory-birds/problem
  14. Day of the Programmer - https://www.hackerrank.com/challenges/day-of-the-programmer/problem
  15. Bon Appétit - https://www.hackerrank.com/challenges/bon-appetit/problem
  16. Sock Merchant - https://www.hackerrank.com/challenges/sock-merchant/problem
  17. Electronics Shop - https://www.hackerrank.com/challenges/electronics-shop/problem
  18. Cats and a Mouse - https://www.hackerrank.com/challenges/cats-and-a-mouse/problem
  19. The Hurdle Race - https://www.hackerrank.com/challenges/the-hurdle-race/problem
  20. Designer PDF Viewer - https://www.hackerrank.com/challenges/designer-pdf-viewer/problem
  21. Utopian Tree - https://www.hackerrank.com/challenges/utopian-tree/problem
  22. Angry Professor - https://www.hackerrank.com/challenges/angry-professor/problem
  23. Beautiful Days at the Movies - https://www.hackerrank.com/challenges/beautiful-days-at-the-movies/problem
  24. Viral Advertising - https://www.hackerrank.com/challenges/strange-advertising/problem
  25. Find Digits - https://www.hackerrank.com/challenges/find-digits/problem
  26. Cut the sticks - https://www.hackerrank.com/challenges/cut-the-sticks/problem
  27. Minimum Distances - https://www.hackerrank.com/challenges/minimum-distances/problem
  28. Strange Counter - https://www.hackerrank.com/challenges/strange-code/problem
  29. CamelCase - https://www.hackerrank.com/challenges/camelcase/problem
  30. Pangrams - https://www.hackerrank.com/challenges/pangrams/problem
  31. Alternating Characters - https://www.hackerrank.com/challenges/alternating-characters/problem
  32. Two Strings - https://www.hackerrank.com/challenges/two-strings/problem
  33. Pairs - https://www.hackerrank.com/challenges/pairs/problem
  34. Prime Dates - https://www.hackerrank.com/challenges/prime-date/problem
  35. XOR Strings - https://www.hackerrank.com/challenges/strings-xor/problem
  36. Zig Zag Sequence - https://www.hackerrank.com/challenges/zig-zag-sequence/problem
  37. Smart Number - https://www.hackerrank.com/challenges/smart-number/problem
  38. Repeated String - https://www.hackerrank.com/challenges/repeated-string/problem
  39. Sales by Match - https://www.hackerrank.com/challenges/sock-merchant/problem

2. Java

  1. Welcome to Java! - https://www.hackerrank.com/challenges/welcome-to-java/problem
  2. Java Stdin and Stdout I - https://www.hackerrank.com/challenges/java-stdin-and-stdout-1/problem
  3. Java If-Else - https://www.hackerrank.com/challenges/java-if-else/problem
  4. Java Stdin and Stdout II - https://www.hackerrank.com/challenges/java-stdin-stdout/problem
  5. Java Output Formatting - https://www.hackerrank.com/challenges/java-output-formatting/problem
  6. Java Loops I - https://www.hackerrank.com/challenges/java-loops-i/problem
  7. Java Loops II - https://www.hackerrank.com/challenges/java-loops/problem
  8. Java Int to String - https://www.hackerrank.com/challenges/java-int-to-string/problem

3. C/C++

  1. Say "Hello, World!" With C++ - https://www.hackerrank.com/challenges/cpp-hello-world/problem
  2. Input and Output - https://www.hackerrank.com/challenges/cpp-input-and-output/problem
  3. Basic Data Types - https://www.hackerrank.com/challenges/c-tutorial-basic-data-types/problem
  4. Conditional Statements - https://www.hackerrank.com/challenges/c-tutorial-conditional-if-else/problem
  5. For Loop - https://www.hackerrank.com/challenges/c-tutorial-for-loop/problem
  6. Functions - https://www.hackerrank.com/challenges/c-tutorial-functions/problem
  7. Pointer - https://www.hackerrank.com/challenges/c-tutorial-pointer/problem
  8. Inherited Code - https://www.hackerrank.com/challenges/inherited-code/problem
  9. Arrays Introduction - https://www.hackerrank.com/challenges/arrays-introduction/problem
  10. Variable Sized Arrays - https://www.hackerrank.com/challenges/variable-sized-arrays/problem
  11. Jumping on the Clouds - https://www.hackerrank.com/challenges/jumping-on-the-clouds/problem
  12. Counting Valleys - https://www.hackerrank.com/challenges/counting-valleys/problem
  13. StringStream - https://www.hackerrank.com/challenges/c-tutorial-stringstream/problem
  14. Strings - https://www.hackerrank.com/challenges/c-tutorial-strings/submissions/code/98029088
  15. Structs - https://www.hackerrank.com/challenges/c-tutorial-struct/problem
  16. Class - https://www.hackerrank.com/challenges/c-tutorial-class/problem
  17. Classes and Objects - https://www.hackerrank.com/challenges/classes-objects/problem
  18. Vector-Sort - https://www.hackerrank.com/challenges/vector-sort/problem
  19. Vector-Erase - https://www.hackerrank.com/challenges/vector-erase/problem
  20. Print Pretty - https://www.hackerrank.com/challenges/prettyprint/problem
  21. Playing with Characters - https://www.hackerrank.com/challenges/playing-with-characters/problem
  22. Sum and Difference of Two Numbers - https://www.hackerrank.com/challenges/sum-numbers-c/problem
  23. Functions in C - https://www.hackerrank.com/challenges/functions-in-c/problem
  24. Pointers in C - https://www.hackerrank.com/challenges/pointer-in-c/problem
  25. Conditional Statements in C - https://www.hackerrank.com/challenges/conditional-statements-in-c/problem
  26. For Loop in C - https://www.hackerrank.com/challenges/for-loop-in-c/problem
  27. Sum of Digits of a Five Digit Number - https://www.hackerrank.com/challenges/sum-of-digits-of-a-five-digit-number/problem
  28. Bitwise Operators - https://www.hackerrank.com/challenges/bitwise-operators-in-c/problem
  29. Printing Pattern Using Loops - https://www.hackerrank.com/challenges/printing-pattern-2/problem
  30. 1D Arrays in C - https://www.hackerrank.com/challenges/1d-arrays-in-c/problem
  31. Array Reversal - https://www.hackerrank.com/challenges/reverse-array-c/problem
  32. Printing Tokens - https://www.hackerrank.com/challenges/printing-tokens-/problem
  33. Digit Frequency - https://www.hackerrank.com/challenges/frequency-of-digits-1/problem
  34. Dynamic Array in C - https://www.hackerrank.com/challenges/dynamic-array-in-c/problem
  35. Calculate the Nth term - https://www.hackerrank.com/challenges/recursion-in-c/problem
  36. Students Marks Sum - https://www.hackerrank.com/challenges/students-marks-sum/problem
  37. Boxes through a Tunnel - https://www.hackerrank.com/challenges/too-high-boxes/problem
  38. Small Triangles, Large Triangles - https://www.hackerrank.com/challenges/small-triangles-large-triangles/problem

4. Regex

  1. Matching Specific String - https://www.hackerrank.com/challenges/matching-specific-string/problem
  2. Matching Anything But a Newline - https://www.hackerrank.com/challenges/matching-anything-but-new-line/problem
  3. Matching Digits & Non-Digit Characters - https://www.hackerrank.com/challenges/matching-digits-non-digit-character/problem
  4. Matching Whitespace & Non-Whitespace Character - https://www.hackerrank.com/challenges/matching-whitespace-non-whitespace-character/problem
  5. Matching Word & Non-Word Character - https://www.hackerrank.com/challenges/matching-word-non-word/problem
  6. Matching Start & End - https://www.hackerrank.com/challenges/matching-start-end/problem
  7. Matching Specific Characters - https://www.hackerrank.com/challenges/matching-specific-characters/problem
  8. Excluding Specific Characters - https://www.hackerrank.com/challenges/excluding-specific-characters/problem
  9. Matching Character Ranges - https://www.hackerrank.com/challenges/matching-range-of-characters/problem
  10. Matching {x} Repetitions - https://www.hackerrank.com/challenges/matching-x-repetitions/problem
  11. Matching {x, y} Repetitions - https://www.hackerrank.com/challenges/matching-x-y-repetitions/problem
  12. Matching Zero Or More Repetitions - https://www.hackerrank.com/challenges/matching-zero-or-more-repetitions/problem
  13. Matching One Or More Repetitions - https://www.hackerrank.com/challenges/matching-one-or-more-repititions/problem
  14. Capturing & Non-Capturing Groups - https://www.hackerrank.com/challenges/capturing-non-capturing-groups/problem
  15. Alternative Matching - https://www.hackerrank.com/challenges/alternative-matching/problem

5. SQL

  1. Revising the Select Query I - https://www.hackerrank.com/challenges/revising-the-select-query/problem
  2. Revising the Select Query II - https://www.hackerrank.com/challenges/revising-the-select-query-2/problem
  3. Select All - https://www.hackerrank.com/challenges/select-all-sql/problem

6. Mathematics

  1. Maximum Draws - https://www.hackerrank.com/challenges/maximum-draws/problem