Interview question journal

Top interview question on leetCode (easy)

Problems Link Approach Optimization Solution link
Two sum https://leetcode.com/problems/two-sum/ Brute force https://github.com/nitin-787/Java-DSA-Practice/blob/main/assignment-solutions/src/InterviewQues/Easy/TwoSum.java
Non duplicate number https://leetcode.com/problems/single-number/ Brute force https://github.com/nitin-787/Java-DSA-Practice/blob/main/assignment-solutions/src/InterviewQues/Easy/SingleNumber.java
isPalindrome https://leetcode.com/problems/valid-palindrome/ two-pointer optimized
Best time to buy and sell the stock https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ https://github.com/nitin-787/Java-DSA-Practice/blob/07aa19121ab3376dfcb37fd73efdd0b72689829e/assignment-solutions/src/InterviewQues/Easy/MaxProfit.java
Largest number https://leetcode.com/problems/largest-number/ Optimized https://github.com/nitin-787/Java-DSA-Practice/blob/main/assignment-solutions/src/InterviewQues/Medium/LargestNumber.java
First and Last Ouccrence https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/ Binary Search Optimized https://github.com/nitin-787/Java-DSA-Practice/blob/9d2692b69376d5a0f7aa4fa27e7a228c415eea00/assignment-solutions/src/Arrays/FirstAndLastPosition.java
Special Array >= X https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/ Binary Search Optimized https://github.com/nitin-787/Java-DSA-Practice/commit/59bd0fa90d1697c599f16914cb96d29917cd4f8d