- This repo consists of 3 categories of problems, completely based on Javascript Programming Language, which are asked in interviews.
Leet Code Problem Basic Data Structure Problems Polyfills for JS Methods
- You can find the code in respective folders.
- You'r welcome to contribute to this repo, if you get any questions that is asked in your interview.
| Problems | Solution |
|---|---|
| Even or Odd w/o conditional statement | Even or Odd |
| Convert Decimal into Binary | Decimal to Binary |
| Find Max value in an array | Find Max value |
| Find Missing Number in an array | Find Missing Number |
| Flatten Array | Flatten Array |
| Flatten an array | Flatten an array |
| Number of Student Working in time slot | Number of Student Working |
| Matching Brackets | Matching Brackets |
| Max Consecutive 1's in Binary Numbers | Max Consecutive 1's |
| Max Profit From Stocks | Max Profit |
| Max Water Saving Between Buildings (Naive) | Max Water Saving |
| Max Water Saving Between Buildings | Max Water Saving |
| Maximum Occurance of A char in string | Maximum Occurance |
| Min and Max in Array (Naive) | Min and Max |
| Min and Max in Array (Optimized) | Min and Max |
| Minimum Shift To Sit Together | Minimum Shift |
| Move Negative Numbers Before Positive Numbers (Naive) | Move Negative Numbers |
| Move Negative Numbers Before Positive Numbers | Move Negative Numbers |
| Remove Duplicate and Sort Numbers | Remove Duplicate |
| Remove Duplicates (Naive) | Remove Duplicates |
| Reverse Number | Reverse Number |
| Second Max Occurance | Second Max Occurance |
| Second Max Occurrence using Hash Map | Second Max Occurrence |
| Second Most Frequency | Second Most Frequency |
| Sort Array of Object By Last name | Sort Array of Object |
| Sorting Array of Objects | Sorting Array of Objects |
| SubArray Chunks | SubArray Chunks |
| Subarray Sum (Naive) | Subarray Sum |
| Warmer Temperature | Warmer Temperature |
| Retain Duplicated Numbers | Retain Duplicated Numbers |
| Sum of SubArray Equals with Number | Sum of SubArray Equals with Number |
| Problems | Solution |
|---|---|
| Singly Linked List | Singly Linked List |
| Doubly Linked List | Doubly Linked List |
| Stack (array) | Stack (array) |
| Stack (class) | Stack (class) |
| Queue | Queue |
| Binary Search Tree | Binary Search Tree |
| Tree Traversal | Tree Traversal |
| Polyfills | Solution |
|---|---|
| Array map() | Array map() |
| Promise | Promise |
| Promise.all | Promise |
| Reduce | Promise |
| Leet Problems | Solution |
|---|---|
| 844. Backspace String Compare | Code |
| 905. Sort Array By Parity | Code |
| 581. Shortest Unsorted Continuous Subarray | Code |
| 1679. Max Number of K-Sum Pairs | Code |
| 1. Two Sum | Code |
| 15. Three Sum | Code |
| 225. Implement Stack using Queues | Code |
| 1209. Remove All Adjacent Duplicates in String II | Code |
| 9. Palindrome Number | Code |
| 341. Flatten Nested List Iterator | Code |
| 63. Unique Paths II | Code |
| 62. Unique Paths | Code |
| 322. Coin Change | Code |
| 1689. Partitioning Into Minimum Number Of Deci-Binary Numbers | Code |
| 26. Remove Duplicates from Sorted Array | Code |
| 27. Remove Elements | Code |
| 682. Baseball Game | Code |
| 707. Design Linked List | Code |
| 1472. Design Browser History | Code |
| 125. Valid Palindrome | Code |