Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

155 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Competitive Programming Solutions

Competitive programming problems solutions

Time Spent includes time to read a problem, problem solving, coding and testing 😉.

Platform analytics

No. Name Easy Medium Hard Total
1. Codeforces 3 2 0 5
2. GeeksforGeeks 1 0 0 1
3. HackerRank 49 0 1 50
4. LeetCode 62 104 1 167

Problem Solved

No Problem Difficulty Tags Platform Tries Time Spent (Min) Programming Language
1. Fizz Buzz Easy Math String LeetCode #1 2 Python
2. Grading Students Easy Math Implementation HackerRank #1 6 Python
3. Domino piling Easy Math Codeforces #1 10 Python
4. Sorting: Bubble Sort Easy Sorting HackerRank #1 5 Python
5. Insertion Sort - Part 1 Easy Sorting HackerRank #1 11 Python
6. Counting Sort 1 Easy Sorting HackerRank #2 5 Python
7. Selection Sort Easy Sorting GeeksforGeeks #1 2 Python
8. Sorting the Sentence Easy Sorting LeetCode #1 3 Python
9. How Many Numbers Are Smaller Than the Current Number Easy Sorting LeetCode #1 2 Python
10. Find Target Indices After Sorting Array Easy Sorting LeetCode #1 2 Python
11. Sort Colors Medium Sorting LeetCode #1 5 Python
12. K Closest Points to Origin Medium Sorting LeetCode #1 2 Python
13. Merge Intervals Medium Sorting LeetCode #2 8 Python
14. Largest Number Medium Sorting LeetCode #4 57 Python
15. Array With Elements Not Equal to Average of Neighbors Medium Sorting LeetCode #2 22 Python
16. Find the Kth Largest Integer in the Array Medium Sorting LeetCode #1 2 Python
17. Find Original Array From Doubled Array Medium Sorting LeetCode #1 15 Python
18. Frequency of the Most Frequent Element Medium Sorting LeetCode #3 102 Python
19. Number of Good Pairs Easy Math Array LeetCode #1 1 Python
20. Counting Valleys Easy Implementation LeetCode #1 12 Python
21. Theatre square Easy Math CodeForces #1 2 Python
22. Max Number of K-Sum Pairs Medium Sorting LeetCode #3 42 Python
23. Arithmetic Subarrays Medium Sorting LeetCode #1 6 Python
24. Maximum Number of Coins You Can Get Medium Sorting LeetCode #1 9 Python
25. Minimize Maximum Pair Sum in Array Medium Sorting LeetCode #1 6 Python
26. Pancake Sorting Medium Sorting LeetCode #1 26 Python
27. Reduce Array Size to The Half Medium Sorting LeetCode #1 4 Python
28. Top K Frequent Elements Medium Sorting LeetCode #1 2 Python
29. Valid Parentheses Easy Stack LeetCode #1 2 Python
30. Implement Queue using Stacks Easy Stack LeetCode #1 2 Python
31. Evaluate Reverse Polish Notation Medium Stack LeetCode #1 5 Python
32. Min Stack Medium Stack LeetCode #3 20 Python
33. Reverse Substrings Between Each Pair of Parentheses Medium Stack LeetCode #1 5 Python
34. Design Circular Deque Medium Queue LeetCode #2 20 Python
35. Task Scheduler Medium Queue LeetCode #1 33 Python
36. Next Greater Element I Easy Monotonic Stack LeetCode #1 13 Python
37. Daily Temperatures Medium Monotonic Stack LeetCode #5 55 Python
38. Car Fleet Medium Monotonic Stack LeetCode #2 75 Python
39. Valid Palindrome Easy String LeetCode #1 2 Python
40. Python Lists Easy List HackerRank #1 9 Python
41. Text Wrap Easy Implemenation HackerRank #1 2 Python
42. Python Print Easy Implemenation HackerRank #1 1 Python
43. Swap Case Easy Implemenation HackerRank #1 1 Python
44. Missing Number Easy Hash Table LeetCode #1 2 Python
45. Valid Anagram Easy Hash Table LeetCode #1 5 Python
46. Two Sum Easy Hash Table LeetCode #1 3 Python
47. Reverse Integer Medium Math LeetCode #3 9 Python
48. Multiply Strings Medium String LeetCode #1 9 Python
49. Find Duplicate File in System Medium Hash Table LeetCode #1 6 Python
50. Adding Spaces to a String Medium String LeetCode #1 4 Python
51. Subdomain Visit Count Medium Hash Table LeetCode #2 14 Python
52. Replace Elements in an Array Medium Hash Table LeetCode #1 4 Python
53. Remove Smallest Easy Sorting Codeforces #1 7 Python
54. Less or Equal Medium Sorting Codeforces #3 16 Python
55. Ehab Is an Odd Person Medium Sorting Codeforces #2 12 Python
56. Arithmetic Operators Easy Math HackerRank #1 1 Python
57. Python: Division Easy Math HackerRank #1 1 Python
58. Convert the Temperature Easy Math LeetCode #1 1 Python
59. Find Three Consecutive Integers That Sum to a Given Number Medium Math LeetCode #1 4 Python
60. Max Consecutive Ones Easy Implementation LeetCode #1 3 Python
61. String Split and Join Easy String HackerRank #1 1 Python
62. What's Your Name? Easy String HackerRank #1 1 Python
63. Smallest Even Multiple Easy Math LeetCode #1 1 Python
64. Python If-Else Easy Math HackerRank #1 1 Python
65. Loops Easy Math HackerRank #1 1 Python
66. Power - Mod Power Easy Math HackerRank #1 1 Python
67. Longest Common Prefix Easy String LeetCode #1 7 Python
68. Merge Strings Alternately Easy String LeetCode #1 2 Python
69. Defanging an IP Address Easy String LeetCode #1 1 Python
70. Find the Difference Easy String LeetCode #1 2 Python
71. Reverse Words in a String Medium String LeetCode #1 1 Python
72. Array Manipulation Hard Data Structures HackerRank #1 1 Python
73. Day 8: Dictionaries and Maps Easy Tutorials HackerRank #1 1 Python
74. Nested Lists Easy Python HackerRank #2 3 Python
75. List Comprehensions Easy Python HackerRank #1 1 Python
76. Find the Runner-Up Score! Easy Python HackerRank #2 2 Python
77. Day 2: Operators Easy Tutorials HackerRank #1 1 C++
78. Day 1: Data Types Easy Tutorials HackerRank #1 1 C++
79. Sorting: Bubble Sort Easy Implementation HackerRank #2 1 C++
80. Find the Point Easy Mathematics HackerRank #1 1 C++
81. Vector-Erase Easy C++ HackerRank #1 1 C++
82. Vector-Sort Easy C++ HackerRank #1 1 C++
83. Classes and Objects Easy C++ HackerRank #1 1 C++
84. Structs Easy C++ HackerRank #1 1 C++
85. Strings Easy C++ HackerRank #1 1 C++
86. StringStream Easy C++ HackerRank #1 1 C++
87. Variable Sized Arrays Easy C++ HackerRank #1 1 C++
88. Arrays Introduction Easy C++ HackerRank #1 1 C++
89. Pointer Easy C++ HackerRank #1 1 C++
90. Functions Easy C++ HackerRank #1 1 C++
91. For Loop Easy C++ HackerRank #1 1 C++
92. Conditional Statements Easy C++ HackerRank #1 1 C++
93. Basic Data Types Easy C++ HackerRank #1 1 C++
94. Say "Hello, World!" With C++ Easy C++ HackerRank #1 1 C++
95. Day 0: Hello, World. Easy Tutorials HackerRank #1 1 C++
96. Solve Me First Easy Algorithms HackerRank #2 1 C++
97. Grading Students Easy Algorithms HackerRank #2 1 C++
98. Time Conversion Easy Algorithms HackerRank #2 9 Python
99. Birthday Cake Candles Easy Algorithms HackerRank #1 1 C++
100. Mini-Max Sum Easy Algorithms HackerRank #8 23 Python
101. Staircase Easy Algorithms HackerRank #1 1 C++
102. Plus Minus Easy Algorithms HackerRank #1 1 C++
103. Diagonal Difference Easy Algorithms HackerRank #1 1 C++
104. Compare the Triplets Easy Algorithms HackerRank #1 1 C++
105. Simple Array Sum Easy Algorithms HackerRank #1 1 C++
106. Find the Pivot Integer Easy Math Prefix Sum LeetCode #1 1 Python
107. Can Make Arithmetic Progression From Sequence Easy Array Sorting LeetCode #1 1 Python
108. Sum of All Subset XOR Totals Easy Array Math Backtracking Bit Manipulation Combinatorics Enumeration LeetCode #1 1 Python
109. Binary Tree Paths Easy String Backtracking Tree Depth-First Search Binary Tree LeetCode #1 1 Python
110. Binary Watch Easy Backtracking Bit Manipulation LeetCode #1 1 Python
111. Letter Combinations of a Phone Number Medium Hash Table String Backtracking LeetCode #2 3 Python
112. Valid Palindrome II Easy Two Pointers String Greedy LeetCode #2 2 Python
113. Three Consecutive Odds Easy Array LeetCode #2 11 Python
114. Sort the Jumbled Numbers Medium Array Sorting LeetCode #3 2 Python
115. Sort Array by Increasing Frequency Easy Array Hash Table Sorting LeetCode #1 1 Python
116. Count Good Numbers Medium Math Recursion LeetCode #2 6 Python
117. Pow(x, n) Medium Math Recursion LeetCode #4 19 Python
118. Find Kth Bit in Nth Binary String Medium String Recursion Simulation LeetCode #1 1 Python
119. Power of Three Easy Math Recursion LeetCode #1 1 Python
120. Power of Four Easy Math Bit Manipulation Recursion LeetCode #2 3 Python
121. Decode String Medium String Stack Recursion LeetCode #3 29 Python
122. Find Consecutive Integers from a Data Stream Medium Hash Table Design Queue Counting Data Stream LeetCode #2 1 Python
123. Score of Parentheses Medium String Stack Bracket Sequences LeetCode #1 1 Python
124. Number of Recent Calls Easy Design Queue Data Stream LeetCode #1 1 Python
125. LRU Cache Medium Hash Table Linked List Design Doubly-Linked List LeetCode #2 2 Python
126. Crawler Log Folder Easy Array String Stack LeetCode #2 1 Python
127. Removing Stars From a String Medium String Stack Simulation LeetCode #1 1 Python
128. Non-decreasing Array Medium Array LeetCode #3 1 Python
129. Partition Array According to Given Pivot Medium Array Two Pointers Simulation LeetCode #1 1 Python
130. Escape The Ghosts Medium Array Math LeetCode #2 1 Python
131. Minimum Number of Operations to Move All Balls to Each Box Medium Array String Prefix Sum LeetCode #1 1 Python
132. Card Flipping Game Medium Array Hash Table LeetCode #4 53 Python
133. Copy List with Random Pointer Medium Hash Table Linked List LeetCode #4 17 Python
134. Design Browser History Medium Array Linked List Stack Design Doubly-Linked List Data Stream LeetCode #1 1 Python
135. Swapping Nodes in a Linked List Medium Linked List Two Pointers LeetCode #1 1 Python
136. Add Two Numbers II Medium Linked List Math Stack LeetCode #2 1 Python
137. Remove Duplicates from Sorted List II Medium Linked List Two Pointers LeetCode #1 1 Python
138. Linked List Cycle Easy Hash Table Linked List Two Pointers Floyd's Cycle Finding Algorithm LeetCode #2 1 Python
139. Remove Duplicates from Sorted List Easy Linked List LeetCode #1 1 Python
140. Reverse Nodes in k-Group Hard Linked List Recursion LeetCode #2 1 Python
141. Rotate List Medium Linked List Two Pointers LeetCode #3 14 Python
142. Insertion Sort List Medium Linked List Sorting LeetCode #1 1 Python
143. Remove Nth Node From End of List Medium Linked List Two Pointers LeetCode #3 8 Python
144. Linked List Cycle II Medium Hash Table Linked List Two Pointers Floyd's Cycle Finding Algorithm LeetCode #1 1 Python
145. Partition List Medium Linked List Two Pointers LeetCode #3 1 Python
146. Reverse Linked List II Medium Linked List LeetCode #2 35 Python
147. Merge Two Sorted Lists Easy Linked List Recursion LeetCode #4 4 Python
148. Delete Node in a Linked List Medium Linked List LeetCode #2 8 Python
149. Reverse Linked List Easy Linked List Recursion LeetCode #1 1 Python
150. Design Linked List Medium Linked List Design LeetCode #3 8 Python
151. Corporate Flight Bookings Medium Array Prefix Sum LeetCode #1 1 Python
152. Subarray Sum Equals K Medium Array Hash Table Prefix Sum LeetCode #1 1 Python
153. Fruit Into Baskets Medium Array Hash Table Sliding Window LeetCode #3 4 Python
154. Split Two Strings to Make Palindrome Medium Two Pointers String LeetCode #3 7 Python
155. Interval List Intersections Medium Array Two Pointers Sweep Line LeetCode #1 1 Python
156. Partition Labels Medium Hash Table Two Pointers String Greedy LeetCode #1 1 Python
157. Find the Student that Will Replace the Chalk Medium Array Binary Search Simulation Prefix Sum LeetCode #1 1 Python
158. Subarray Product Less Than K Medium Array Binary Search Sliding Window Prefix Sum LeetCode #3 24 Python
159. Longest Subarray of 1's After Deleting One Element Medium Array Dynamic Programming Sliding Window LeetCode #1 1 Python
160. Shifting Letters Medium Array String Prefix Sum LeetCode #1 1 Python
161. Find Pivot Index Easy Array Prefix Sum LeetCode #2 8 Python
162. Range Sum Query - Immutable Easy Array Design Prefix Sum LeetCode #1 1 Python
163. Next Permutation Medium Array Two Pointers LeetCode #2 1 Python
164. 4Sum Medium Array Two Pointers Sorting LeetCode #2 1 Python
165. 3Sum Medium Array Two Pointers Sorting LeetCode #5 35 Python
166. Longest Mountain in Array Medium Array Two Pointers Dynamic Programming Enumeration LeetCode #6 39 Python
167. Longest Substring Of All Vowels in Order Medium String Sliding Window LeetCode #1 1 Python
168. Minimum Size Subarray Sum Medium Array Binary Search Sliding Window Prefix Sum LeetCode #1 1 Python
169. Longest Substring Without Repeating Characters Medium Hash Table String Sliding Window LeetCode #9 24 Python
170. Find All Anagrams in a String Medium Hash Table String Sliding Window LeetCode #3 2 Python
171. Maximum Average Subarray I Easy Array Sliding Window LeetCode #1 1 Python
172. Search Insert Position Easy Array Binary Search LeetCode #4 1 Python
173. Find Smallest Letter Greater Than Target Easy Array Binary Search LeetCode #1 1 Python
174. Guess Number Higher or Lower Easy Binary Search Interactive LeetCode #1 1 Python
175. Sqrt(x) Easy Math Binary Search Newton's Method LeetCode #1 1 Python
176. Two Sum II - Input Array Is Sorted Medium Array Two Pointers Binary Search LeetCode #2 1 Python
177. Maximum Matching of Players With Trainers Medium Array Two Pointers Greedy Sorting LeetCode #1 1 Python
178. Find Indices With Index and Value Difference II Medium Array Two Pointers LeetCode #2 1 Python
179. String Compression Medium Two Pointers String LeetCode #1 1 Python
180. Boats to Save People Medium Array Two Pointers Greedy Sorting Timsort LeetCode #3 3 Python
181. Find the Duplicate Number Medium Array Two Pointers Binary Search Bit Manipulation Pigeonhole Principle Floyd's Cycle Finding Algorithm LeetCode #1 1 Python
182. Count Number of Distinct Integers After Reverse Operations Medium Array Hash Table Math Counting LeetCode #1 1 Python
183. Remove Duplicates from Sorted Array II Medium Array Two Pointers LeetCode #1 1 Python
184. Divide Players Into Teams of Equal Skill Medium Array Hash Table Two Pointers Sorting LeetCode #1 1 Python
185. Container With Most Water Medium Array Two Pointers Greedy LeetCode #1 1 Python
186. Sum of Square Numbers Medium Math Two Pointers Binary Search LeetCode #2 1 Python
187. Majority Element II Medium Array Hash Table Sorting Counting Boyer–Moore Majority Vote Algorithm LeetCode #1 1 Python
188. Design Authentication Manager Medium Hash Table Linked List Design Doubly-Linked List LeetCode #1 1 Python
189. Design Underground System Medium Hash Table String Design LeetCode #1 1 Python
190. Watering Plants Medium Array Simulation LeetCode #1 1 Python
191. Largest Perimeter Triangle Easy Array Math Greedy Sorting Quicksort Polygons LeetCode #2 1 Python
192. Keyboard Row Easy Array Hash Table String LeetCode #2 4 Python
193. Minimum Index Sum of Two Lists Easy Array Hash Table String LeetCode #2 7 Python
194. Widest Vertical Area Between Two Points Containing No Points Easy Array Sorting LeetCode #1 1 Python
195. Smallest Value of the Rearranged Number Medium Math Sorting LeetCode #4 7 Python
196. Minimum Processing Time Medium Array Greedy Sorting LeetCode #1 1 Python
197. Backspace String Compare Easy Two Pointers String Stack Simulation LeetCode #1 1 Python
198. Find Greatest Common Divisor of Array Easy Array Math Number Theory Euclidean Algorithm Greatest Common Divisor LeetCode #1 1 Python
199. Reduction Operations to Make the Array Elements Equal Medium Array Sorting LeetCode #1 1 Python
200. Relative Sort Array Easy Array Hash Table Sorting Counting Sort Quicksort Bubble Sort LeetCode #1 1 Python
201. Return Length of Arguments Passed Easy Implementation LeetCode #1 1 JavaScript
202. Sort the People Easy Array Hash Table String Sorting LeetCode #2 27 Python
203. Diagonal Traverse Medium Array Matrix Simulation LeetCode #3 10 Python
204. Maximum Sum of an Hourglass Medium Array Matrix Prefix Sum LeetCode #1 1 Python
205. Image Smoother Easy Array Matrix LeetCode #1 1 Python
206. Plus One Easy Array Math LeetCode #1 1 Python
207. Delete Columns to Make Sorted Easy Array String Longest Increasing Subsequence LeetCode #1 1 Python
208. All Divisions With the Highest Score of a Binary Array Medium Array LeetCode #1 1 Python
209. Transpose Matrix Easy Array Matrix Simulation LeetCode #1 1 Python
210. Find the Winner of the Circular Game Medium Array Math Recursion Queue Simulation LeetCode #1 1 Python
211. Reverse String Easy Two Pointers String LeetCode #1 1 Python
212. Apply Operations to an Array Easy Array Two Pointers Simulation LeetCode #1 1 Python
213. Find Players With Zero or One Losses Medium Array Hash Table Sorting Counting LeetCode #2 2 Python
214. Insert Delete GetRandom O(1) Medium Array Hash Table Math Design Randomized LeetCode #1 1 Python
215. Frequency Tracker Medium Hash Table Design LeetCode #4 31 Python
216. Rearrange Array Elements by Sign Medium Array Two Pointers Simulation LeetCode #1 1 Python
217. Decrypt String from Alphabet to Integer Mapping Easy String LeetCode #2 18 Python
218. Self Dividing Numbers Easy Math LeetCode #1 1 Python
219. Count Primes Medium Array Math Enumeration Number Theory Primality Test Sieve Theory Prime Number Sieve LeetCode #1 1 Python
220. Final Value of Variable After Performing Operations Easy Array String Simulation LeetCode #2 2 Python
221. Daily Temperatures Medium Array Stack Monotonic Stack LeetCode #7 34 C++
222. Average Salary Excluding the Minimum and Maximum Salary Easy Array Sorting LeetCode #5 10 C++
223. Two Sum Easy Array Hash Table LeetCode #4 29 C++

About

A2SV competitive programming problems solution

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages