This is a repository with my solutions to programming problems I solved on leetcode and hackerrank. Below is the list of solved problems with a link to the problem description. The solution to a problem can be found in the file within the project that matches the problem name.
- Apple and Orange
- Same Tree
- Baseball Game Fastest solution in Python 3 at submission time
- Palindrome Number
- Running Sum of 1d Array
- Shuffle the Array
- Number of Good Pairs Fastest solution in C++ at submission time
- Kids With the Greatest Number of Candies
- Shuffle String
- Subtract the Product and Sum of Digits of an Integer Fastest solution in C++ at submission time
- Decompress Run-Length Encoded List
- Number of Steps to Reduce a Number to Zero Fastest solution in C++ at submission time
- Split a String in Balanced Strings Fastest solution in C++ at submission time
- Find Numbers with Even Number of Digits
- Defanging an IP Address Fastest solution in C++ at submission time
- Maximum 69 Number Fastest solution in C++ at submission time
- Maximum Product of Two Elements in an Array
- Destination City
- Find N Unique Integers Sum up to Zero Fastest solution in C++ at submission time
- How Many Numbers Are Smaller Than the Current Number
- Create Target Array in the Given Order
- Counting Valleys
- Unique Morse Code Words
- Climbing Stairs
- Find All Numbers Disappeared in an Array
- Linked List Cycle
- Max Increase to Keep City Skyline
- Minimum Time Visiting All Points
- Ransom Note
- Two Sum
- Breaking Best and Worst Records
- Migratory Birds
- Bon Appetit
- Sock Merchant
- Electronics Shop
- Best Time to Buy and Sell Stock
- Merge Two Sorted Lists
- Valid Anagram
- Cats And A Mouse
- The Hurdle Race
- Designer PDF Viewer
- Beautiful Days at the Movies
- Utopian Tree
- Strange Advertising
- Two Sum
- Valid Anagram
- Fibonacci Number
- Maximum Number of Words Found in Sentences
- Missing Integer(Problem description in solution file)