Java Hyd Team
747 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website 😊
Still working on it 😊
Download Telegram
Instead of learning solutions of LeetCode questions, understand patterns! πŸ™‚

𝑴𝒖𝒔𝒕 𝑺𝒂𝒗𝒆 𝒂𝒏𝒅 𝑺𝒉𝒂𝒓𝒆 !!!!

For ex.

If input array is sorted then
- Binary search
- Two pointers

If asked for all permutations/subsets then
- Backtracking

If given a tree then
- DFS
- BFS

If given a graph then
- DFS
- BFS

If given a linked list then
- Two pointers

If recursion is banned then
- Stack

If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer

If asked for maximum/minimum subarray/subset/options then
- Dynamic programming

If asked for top/least K items then
- Heap

If asked for common strings then
- Map
- Trie

Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space



Link : https://t.me/teamJavaHydπŸ‘ˆπŸ‘ˆπŸ‘ˆ


Check out a GitHub repo by Sean Prasad if you're interested to read more about this, it's absolutely amazing!


#leetcode #placements #dsa #interview #coding #preparation #consistency #quality #programming #softwareengineering #india #competitiveprogramming #datastructures #algorithms #connections #interviewpreparation