/algs-progfun

Solutions to coding challenges

Primary LanguageJavaMIT LicenseMIT

Algorithms Programming Fun

Solutions to coding challenges from Hacker Rank and Hacker Earth.

Hacker Rank

Algorithms

HackerRank Solutions HackerRank Languages

# Problem Solutions Difficulty Points
Warmup
1. Solve Me First Kotlin Easy 1
2. Simple Array Sum Java Scala Easy 10
3. Compare The Triplets Java Easy 10
4. A Very Big Sum Java Easy 10
5. Diagonal Difference Java Easy 10
6. Plus Minus Java Easy 10
7. Staircase Java Easy 10
8. Mini-Max Sum Haskell Kotlin Easy 10
9. Birthday Cake Candles Java Easy 10
10. Time Conversion Java Easy 15
Implementation
11. Grading Students Kotlin Easy 10
12. Apple and Orange Kotlin Easy 10
13. Kangaroo Kotlin Easy 10
14. Between Two Sets Kotlin Easy 10
15. Breaking the Records Java Easy 10
16. Birthday Chocolate Kotlin Easy 10
17. Migratory Birds Java Easy 10
18. Stock Merchant Java Easy 10
19. Counting Valleys Java Easy 15
20. Electronic Shop Java Easy 15
21. Cat and A Mouse Java Easy 15
22. Forming a Magic Square Kotlin Easy 20
23. Picking Numbers Kotlin Easy 20
24. Climbing the Leaderboard Java Kotlin Easy 20
25. The Hurdle Race Java Easy 15
26. Designer PDF Viewer Kotlin Easy 20
27. Utopian Tree Java Easy 20
28. Angry Professor Java Easy 20
29. Beautiful Days at the Movies Java Easy 15
30. Viral Advertising Java Easy 15
31. Save the Prisoner! Kotlin Easy 15
32. Circular Array Rotation Java Easy 20
33. Sequence Equation Kotlin Easy 20
34. Jumping on the Clouds: Revisited Java Easy 15
35. Find Digits Java Easy 25
36. Extra Long Factorials Java Medium 20
37. Append and Delete Kotlin Easy 20
38. Sherlock and Squares Kotlin Easy 20
39. Library Fine Java Easy 15
40. Cut the Sticks Java Easy 25
41. Repeated String Java Easy 20
42. Jumping on the Clouds Java Easy 20
43. Equalize the Array Java Easy 20
44. Taum and B'day Java Easy 25
45. Encryption Java Medium 30
46. Bigger is Greater Java Medium 35
47. Minimum Distances Java Medium 20
48. The Time in Words Java Medium 25
49. Chocolate Feast Java Easy 25
50. Cavity Map Java Easy 30
51. Manasa and Stones Java Easy 30
52. The Grid Search Java Medium 30
Strings
53. Super Reduced String Java Easy 10
54. Camel Case Java Easy 15
55. Mars Exploration Java Easy 15
56. Pangrams Java Easy 20
57. Funny String Java Easy 25
58. Alternating Characters Java Easy 20
59. Sherlock and the Valid String Java Easy 35
60. Sherlock and Anagrams Java Medium 50
Sorting
61. Big Sorting Java Easy 20
62. Intro to Tutorial Challenges Java Easy 30
63. Insertion Sort - Part 1 Java Easy 30
64. Insertion Sort - Part 2 Java Easy 30
Search
65. Ice Cream Parlor Java Easy 30
66. Missing Numbers Java Easy 45
67. Sherlock and Array Java Easy 40
68. Connected Cells in a Grid Kotlin Medium 50
Graph Theory
69. Breadth First Search: Shortest Reach Java Medium 55
70. Even Tree Java Medium 50
Greedy
71. LuckBalance Java Easy 20
72. BeautifulPairs Java Easy 30
73. SherlockAndTheBeast Java Easy 30
Dynamic Programming
74. Fibonacci Modified Java Medium 45
75. The Maximum Subarray Java Medium 50
Bit Manipulation
76. Lonely Integer Java Easy 20

Functional Programming

HackerRank Solutions HackerRank Languages

# Problem Solution Difficulty Points
Introduction
1. List Replication Scala Easy 10
2. Filter Array Scala Easy 10
3. Filter Positions in a List Scala Easy 10
4. Array Of N Elements Scala Easy 10
5. Reverse a List Scala Easy 10
6. Sum of Odd Elements Haskell Easy 10
7. List Length Haskell Easy 10

Hacker Earth

HackerEarth Solutions HackerEarth Languages

Algorithms

# Problem Solutions Difficulty
Graphs
1. Monk at the Graph Factory Java Easy