Hey everyone! 👋Today marks Day 8 of my #90DaysOfDSA challenge. Rather than tackling brand-new problems, I decided to take a step back and revise some key LeetCode classics that are frequently asked in interviews and fundamental to building strong pr...
📅 Date: May 26, 2025🏷️ Tags: DSA, Python, LeetCode, Sliding Window, HashMap 👋 Hello Devs! Welcome back to my #90DaysOfDSA journey. On Day 6, I focused on solving problems that involve string pairing and sliding window techniques — both of which a...
Are you struggling with sliding window algorithms or preparing for Google coding interviews? Today's DSA journey covers essential patterns that 90% of software engineers encounter, including the notorious Maximal Square problem that stumps many Googl...
Think of coding without collections like building furniture without tools. You could do it… but why suffer? Let’s explore Java Collections with relatable examples, practical code, and clarity that sticks. 👋 Meet the Java Collections Framework Imag...
If there’s one pattern that’s pure gold in interviews, it’s Hashing. Actually, it is more of a utility approach that helps build the foundations of a lot of optimized solutions. Hashing, from a Java perspective, means the use of HashMap and HashSet. ...
Date: 2024-05-20 This Java Code Geeks article details three methods to find the majority element (appearing more than half the array's size) in a Java array: sorting, using a HashMap, and the Boyer-Moore Voting Algorithm. Each method is explained st...
Date: 2024-03-13 This Java tutorial explains how to efficiently convert a HashMap's values into an ArrayList. It details two methods: using core Java's values() method and the ArrayList constructor, and a more concise approach using Google Guava's L...
Date: 2023-09-11 Java HashMaps efficiently store key-value pairs using a hash table, offering fast data retrieval. While you can't directly alter keys (doing so can corrupt data), you can update key-value pairs by removing the old entry with remove(...
Date: 2024-11-14 This Java Code Geeks article explains how to detect the delimiter in a CSV file using Java. Since Java lacks a built-in function, the article presents two methods: one analyzing the first line to count delimiter occurrences (comma, ...
Date: 2024-09-09 This JavaCodeGeeks article details multiple methods for counting distinct elements and their frequencies within a Java array. It covers iterative approaches using counters and auxiliary arrays, leveraging HashMaps for flexible count...