© 2023 Hashnode
#hashmap
Isomorphic String is a classic problem that challenges us to determine whether two given strings have a one-to-one character mapping. In other words, we need to check if we can replace characters in o…
Hey there! 👋 Today, let's talk about two essential map containers provided by the standard library in C++. 📚✨ These containers are called ordered map (std::map) and unordered map (std::unordered_map…
Given two strings s and t, determine if they are isomorphic. Two strings s and t are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with an…
Overview I walk you through how to solve Leetcode problem 347. Top K Frequent Elements. Approach 1: Count HashMap def topKFrequent(nums, k): count = {} res = [] for n in nums: count[n] = count.get(n, 0) + 1 for _ in …
Problem Statement : “Given two strings s and t, return true if t is an anagram of s, and false otherwise.” An anagram is a word or phrase formed by rearranging the letters of a different word or ph…
Introduction In simple terms, HashMap is the class of the Java collection framework that provides the functionality of hash table data structures. It is a basic implementation of the Map interface. HashMap stores data in (Key, Value) pairs.…
The map data type in Go is used to store key-value pairs. It is an unordered, dynamically resizable container that can store elements of the same type. Keys and values can be of any type, as long as t…
Tech-letter #17 | April 3, 2023 Hashmap A hashtable, also known as a hash map, is a data structure used to implement associative arrays or mappings of key-value pairs. What are associative arrays? Associative arrays, also known as maps…
while learning hashing in python I generally get confused about different terminology and somehow I think O(n^2) is not that bad but now after solving questions I am getting a feeling of hashmap so be…
Data Structures and Algorithms are an essential part of coding interviews in many companies most Big Tech companies(Example:-Google, Microsoft, Apple, Amazon, etc….) types ask it for the selection of the ideal SDE and it is not only limite…