If you had a traditional Computer Science education, you were probably taught about some cool data structures. And while every major language has packages that implement sophisticated data structures, few exist for Javascript as well.
This repository is for implementing the data structure in javascript and solving dynamic programing questions.
Data Structure in javascript
- implement stack and queue in javascript - implement-stack-and-queue.js
- Implement stack and queue
- implement single Link list and all possible single link list programing questions - singly-linked-list.js
Dynamic programing questions solutions in javascript.
- Remove duplicate number from an array in O(n) complexity - remove-duplicate-number-from-array.js
- Remove duplicate number from an array
- Convert AM PM Time to 24 hours time format - time-conversion.js
- Convert AM PM Time to 24 hours time format
- Given a string find all the unique characters in the string - find-unique-character.js
- Find all the unique characters in the stirng
- Find if a triplet exists that sum to a given value - find-triplet-of-sum.js This consist smart and naive approach of solving this question
- Find if a triplet exists that sum to a given value
- Find if a pair exist that sum to a given value - find-double-of-sum.js This consist naive better and best approach of solving this question
- Find if a pair exist that sum to a given value