Siddharthsiddharthqs.com·Sep 1, 2024Welcome to My Rough Rust Notes!So, you’ve dipped your toes into Rust—perhaps by watching a few YouTube tutorials, reading a book, or experimenting with some code. But now, as you start coding, you find yourself constantly Googling or searching into StackOverflow for basic code. Th...Discuss·3 likes·87 readsRustRust
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·238 readsKotlinconcurrenthashmap
Riyaz Nabiyullariyaz-blog.hashnode.dev·Jul 15, 2024Data Structures - Java: Syntax, Use Case, Time and Space Complexity1. Arrays Syntax: // Declaration and initialization int[] array = new int[10]; int[] array = {1, 2, 3, 4, 5}; // Accessing elements int element = array[0]; // Modifying elements array[1] = 10; Use Cases: Fixed-size collections, fast access by inde...Discuss·27 readsDSA-Javadata structures
Thunderthunderbyte.hashnode.dev·Jun 27, 202415.Java HashMap 다시 복습알고리즘 문제를 풀다가 기초 문법이 부실하다는 생각이 들었다.이론으로 알고있는 것과 손가락으로 두들겨본 코드는 다르니.. 그래서 복습을 진행했다. 1. 그룹화 애너그램 그룹화: 문자열 배열 strs가 주어졌을 때, 애너그램(문자를 재배열하여 다른 단어를 만들 수 있는 단어)끼리 그룹화하는 프로그램을 작성하세요.HashMap을 사용하여 애너그램 그룹을 관리하고, 결과를 출력하세요. import java.util.ArrayList; import...DiscussJavaJava
Vineeth Chivukulavineethchivukula.hashnode.dev·Jun 24, 2024Understanding Java HashMap for DSAA HashMap in Java is a part of the Java Collections Framework and provides a way to store key-value pairs, where keys are unique. It is part of the java.util package and implements the Map interface. The HashMap class allows null values and the null ...Discusshashmap
Sahil Jagtapsahiljagtap.hashnode.dev·Jun 18, 2024Dealing with Array & Hashing Problems: Essential Tips and Tricks: Part 1In this article, we will explore arrays and hashing problems with the top 5 famous challenges. If you've ever been frustrated by dynamic arrays or hashing problems on platforms like LeetCode, don't worry! After reading this article, you'll master the...Discuss·1 likeAlgorithms Series by Sahilarrays