Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 485 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 485 Bytes

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