https://github.com/likhithkp/top-five-js-dsa-questions
Data Structures in JavaScript ( Top 5 Questions )
https://github.com/likhithkp/top-five-js-dsa-questions
best-time-to-buy-and-sell-stocks dsa-algorithm fibonacci javscript palindrome two-sum-problem valid-anagram
Last synced: 3 months ago
JSON representation
Data Structures in JavaScript ( Top 5 Questions )
- Host: GitHub
- URL: https://github.com/likhithkp/top-five-js-dsa-questions
- Owner: likhithkp
- Created: 2024-11-14T08:46:02.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-15T10:03:06.000Z (8 months ago)
- Last Synced: 2025-04-04T00:08:13.912Z (3 months ago)
- Topics: best-time-to-buy-and-sell-stocks, dsa-algorithm, fibonacci, javscript, palindrome, two-sum-problem, valid-anagram
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Top 5 DSA questions
## Ques 1 - Palindrome Number
Solution #1 - Using Inbuilt JS Methods## Ques 2 - Fibonacci Number
Solution #1 - Using "for" Loop
Solution #2 - Using Recursion## Ques 3 - Valid Anagram
Solution #1 - Normal Approach
Solution #2 - Using Objects## Ques 4 - Two Sum
Solution #1 - Brute Force
Solution #2 - Using JS Objects## Ques 5 - Best time to buy and sell stocks
Solution #1 - Brute Force
Solution #2 - Greedy Algorithm