Hunter (@chiefhunter_) profile picture
Joined November 2024
Complete DSA Roadmap   |-- Basic_Data_Structures   |     |-- Arrays   |     |-- Strings   |     |-- Linked_Lists   |     |-- Stacks   |    └─ Queues   |   |-- Advanced_Data_Structures   |     |-- Trees   |     |     |-- Binary_Trees   |     |     |-- Binary_Search_Trees   |     |     |-- AVL_Trees   |     |    └─ B-Trees   |     |   |     |-- Graphs   |     |     |-- Graph_Representation   |     |     |      |- Adjacency_Matrix   |     |     |     └ Adjacency_List   |     |     |   |     |     |-- Depth-First_Search   |     |     |-- Breadth-First_Search   |     |     |-- Shortest_Path_Algorithms   |     |     |      |- Dijkstra's_Algorithm   |     |     |     └ Bellman-Ford_Algorithm   |     |     |   |     |    └─ Minimum_Spanning_Tree   |     |            |- Prim's_Algorithm   |     |           └ Kruskal's_Algorithm   |     |   |     |-- Heaps   |     |     |-- Min_Heap   |     |     |-- Max_Heap   |     |    └─ Heap_Sort   |     |   |     |-- Hash_Tables   |     |-- Disjoint_Set_Union   |     |-- Trie   |     |-- Segment_Tree   |    └─ Fenwick_Tree   |   |-- Algorithmic_Paradigms   |     |-- Brute_Force   |     |-- Divide_and_Conquer   |     |-- Greedy_Algorithms   |     |-- Dynamic_Programming   |     |-- Backtracking   |     |-- Sliding_Window_Technique   |     |-- Two_Pointer_Technique   |    └─ Divide_and_Conquer_Optimization   |           |-- Merge_Sort_Tree   |          └─ Persistent_Segment_Tree   |   |-- Searching_Algorithms   |     |-- Linear_Search   |     |-- Binary_Search   |     |-- Depth-First_Search   |    └─ Breadth-First_Search   |   |-- Sorting_Algorithms   |     |-- Bubble_Sort   |     |-- Selection_Sort   |     |-- Insertion_Sort   |     |-- Merge_Sort   |     |-- Quick_Sort   |    └─ Heap_Sort   |   |-- Graph_Algorithms   |     |-- Depth-First_Search   |     |-- Breadth-First_Search   |     |-- Topological_Sort   |     |-- Strongly_Connected_Components   |    └─ Articulation_Points_and_Bridges   |   |-- Dynamic_Programming   |     |-- Introduction_to_DP   |     |-- Fibonacci_Series_using_DP   |     |-- Longest_Common_Subsequence   |     |-- Longest_Increasing_Subsequence   |     |-- Knapsack_Problem   |     |-- Matrix_Chain_Multiplication   |    └─ Dynamic_Programming_on_Trees   |   |-- Mathematical_and_Bit_Manipulation_Algorithms   |     |-- Prime_Numbers_and_Sieve_of_Eratosthenes   |     |-- Greatest_Common_Divisor   |     |-- Least_Common_Multiple   |     |-- Modular_Arithmetic   |    └─ Bit_Manipulation_Tricks   |   |-- Advanced_Topics   |     |-- Trie-based_Algorithms   |     |     |-- Auto-completion   |     |    └─ Spell_Checker   |     |   |     |-- Suffix_Trees_and_Arrays   |     |-- Computational_Geometry   |     |-- Number_Theory   |     |     |-- Euler's_Totient_Function   |     |    └─ Mobius_Function   |     |   |    └─ String_Algorithms   |            |-- KMP_Algorithm   |           └─ Rabin-Karp_Algorithm   |   |-- OnlinePlatforms   |     |-- LeetCode All the best Freshers hub!!
4
24
2
218
8,156
if you're into DSA let's connect.
141
7
416
20,936
In order to understand recursion. One must first understand recursion
9
Quantum computing Artificial Intelligence Blockchain Technology Which one is the future?
40
What exactly is the difference between dynamic programming and Greedy algorithms?
11
Is async/await just a Syntactic Sugar over Promises + Generators?
2
1
20
3,356
I am doing DSA for 2.5 months now still I am not able to solve hard problems, but medium/easy problems seem normal for me, any tips on how can I solve hard problems and improve myself??
66
49
3
1,562
92,617
Where are the software engineers?
9
- found the best gf - got a job at 21 (25+ LPA, fintech) - met Javed Akhtar he loved my shayari🤪 - investments hit multiple 6 figures - travelled on my own - worked with NASA - bought all gadgets of convenience 🙏 - got one of the best credit cards in 🇮🇳 - stopped 🚬🥃
Brag about something you did in 2024!
107
96
49
4,353
503,233
Hunter retweeted
Singleton is one of the favorite topics of Java interviewers. Cover these 20 questions, and you don't have to worry about Singletons anymore 👇 1. Implement a basic Singleton class in Java. 2. Explain the difference between lazy and eager initialization in Singleton. 3. What is double-checked locking, and how does it work in Singleton? 4. Explain the Bill Pugh Singleton design. Why is it considered the best approach? 5. Can you implement a Singleton using synchronized methods? What are the downsides? 6. How does the volatile keyword help in a thread-safe Singleton implementation? 7. How can Singleton break during serialization? How do you prevent it? 8. When do you use the readResolve() method in Singleton ? 9. How does reflection break the Singleton pattern? 10. Can Enum be used to implement Singleton in Java? Why is Enum considered the most robust way to implement Singleton? What are the pros and cons of Enum-based Singleton? 11. Is Singleton suitable for distributed systems (e.g., microservices)? Why or why not? 12. How do Singleton patterns interact with garbage collection in Java? 13. How can multiple class loaders break the Singleton pattern? 14. How can you use Singleton in dependency injection frameworks like Spring? 15. Design a thread-safe Singleton for a logging utility. 16. How would you use Singleton in a database connection pool? 17. Explain when Singleton might become an anti-pattern. 18. If two JVMs are running the same Singleton class, will they share the same instance? Why? 19. Implement a Singleton for a configuration settings manager. 20. Compare Singleton with Static classes: when to use which?
3
44
1
343
16,799
In an interview, how do you explain the concept of dead letter queues?
18
Fair 😂
TypeScript is just JavaScript with trust issues
1
1
45
Developers. Do you prefer hard copy books to online books or articles ?
1
1
26
What was the pivotal moment? At what point do you consider yourself a Snr Software Engineer? @ace_rbk
1
1
1
30
Go is the new Java
1
1
24
Is typescript really necessary?
1
1
26
Is typescript really necessary?
1
1
26
Go is the new Java
1
1
24
What was the pivotal moment? At what point do you consider yourself a Snr Software Engineer? @ace_rbk
1
1
1
30
Developers. Do you prefer hard copy books to online books or articles ?
1
1
26