Vaishnavi Dwivedivaishd.hashnode.dev·Nov 18, 2024Java Collections FrameworkImagine you're in a busy kitchen, using different tools to prepare a meal—this is similar to the Java Collections Framework. It provides a set of classes and interfaces to store, manage, and retrieve data in your programs. Just like you have differen...DiscussLearn DSA - JAVAJava List, Set, Map, Queue
Aswin Bennyblog.aswinbenny.in·Oct 7, 2024Hash Data StructuresIntro Hash Set vs Hash Map Hash Set or unordered_set No values, just keys Used to check if a key exists or not Hash Map or unordered_map Value is also included Used to check if a key exists and also get its value Ordered Map vs Unordere...DiscussData Structuresdata structures
Arpit Singhd-s-a.hashnode.dev·Oct 3, 2024HashMap, JavaOverview Hey there, let’s quickly go through Java HashMap, it is a powerful data structure that facilitates efficient storage and retrieval of key-value pairs. Java's HashMap is part of the java.util package and implements the Map interface. Unlike i...Discussdata structures
Kingsley Ihemelandukijuchihe.hashnode.dev·Oct 2, 2024Hash Maps in DSAWhat are Hash Maps Hash maps are data structures that store key-value pairs, allowing for efficient data retrieval. They function similarly to a dictionary, where a unique key corresponds to a specific value. For instance, consider a scenario where y...DiscussData Structures and Algorithmshashmap
Alexander Koloboviamaleko.hashnode.dev·Sep 29, 2024Algorithms in Everyday TasksOriginally published on TechBullion. I often hear from front-end developers, that the ability to solve algorithmic problems, which are frequently assessed in interviews, is completely unnecessary for regular developers. They believe the same applies ...Discuss·51 readstypedarray
Nicolas Fränkelfrankel.hashnode.dev·Aug 15, 2024Default map valueIn this post, I'll explain how to provide a default value when querying an absent key in a hash map in different programming languages. Java Let's start with Java, my first professional programming language. In older versions, retrieving a value from...Discussprogramming languages
Sohag Molliksohagmollik.hashnode.dev·Aug 10, 2024Solution Approach to Solve Leetcode Problem "3016. Minimum Number of Pushes to Type Word II"In this article, we'll tackle the LeetCode problem '3016. Minimum Number of Pushes to Type Word II,' where we need to find the minimum number of pushes required to type a given word using a keyboard with a specific layout. The problem provides a keyb...Discussleetcode
Anjan BaradwajforfreeCodeCampfreecodecamp.org·Aug 9, 2024How Java HashMaps Work – Internal Mechanics ExplainedA HashMap is one of the most commonly used data structures in Java, and it's known for its efficiency. Data in a HashMap is stored in the form of key-value pairs. In this article, I will introduce you to HashMaps in Java. We will explore the common o...DiscussJava
eclaircpcompetitive-programming.hashnode.dev·Jul 27, 2024Two Sum - LeetCodeProblem Link C++ Code class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { map<int, int> hashMap; vector<int> ans; for(int i=0; i<nums.size(); i++) { int num = nums[i]; ...DiscussLeetCode Solutionsleetcode
Romman Sabbirrommansabbir.com·Jul 25, 2024Understanding ConcurrentHashMap in Kotlin/JavaIntroduction In multi-threaded programming, managing data consistency and thread safety is paramount. A common challenge is efficiently managing a shared resource without compromising on performance. In Java and Kotlin, the ConcurrentHashMap is a key...Discuss·690 readsKotlinconcurrenthashmap