This repo provides a collection data structures and algorithms problems list along with the solution in JavaScript that one can refer or practice for front-end engineering interviews.
This repo is in progress
- Running Sum of 1d Array
- Missing Number
- Single Number
- Kids With the Greatest Number of Candies
- Shuffle the Array
- How Many Numbers Are Smaller Than the Current Number
- Create Target Array in the Given Order
- XOR Operation in an Array
- Flipping an Image
- Maximum Product of Two Elements in an Array
- Number of Students Doing Homework at a Given Time
- Fibonacci Number
- Minimum Absolute Difference
- Majority Element
- Move Zeroes
- Find All Numbers Disappeared in an Array
- Missing Number
- Best Time to Buy and Sell Stock
- Min Cost Climbing Stairs
- Remove Element
- Maximum Subarray
- Remove Duplicates from Sorted Array
- Two Sum
- Check If It Is a Straight Line
- Third Maximum Number
- Combination Sum
- Unique Paths
- Container With Most Water
- Minimum Number of Days to Make m Bouquets
- Find Peak Element
- Search a 2D Matrix
- Word Search
- Spiral Matrix
- Search in Rotated Sorted Array
- Unique Paths II
- 3 Sum
- Non-decreasing Array
- Add Two Numbers
- Delete Node in a Linked List
- Middle of the Linked List
- Merge Two Sorted Lists
- Remove Duplicates from Sorted List
- Reverse Linked List
- Intersection of Two Linked Lists
- Linked List Cycle
- Palindrome Linked List
- Remove Linked List Elements
- Swapping Nodes in a Linked List
- Odd Even Linked List
- Reorder List
- Remove Nth Node From End of List
- Rotate List
- Remove Duplicates from Sorted List II
If you want to know more about using this repo, check out Usage Guide
If you want to contribute, improve or suggest changes to this repo, then check out the Contributing Guide