#hashmap
Read more stories on Hashnode
Articles with this tag
Given an array of strings words, return the words that can be typed using letters of the alphabet on only one row of American keyboard like the image...
You are given a string word. A letter is called special if it appears both in lowercase and uppercase in word. Return the number of special letters in...
You are given a 0-indexed 2D integer matrix grid of size n * n with values in the range [1, n<sup>2</sup>]. Each integer appears exactly once except a...
You are given two 0-indexed integer arrays nums1 and nums2 of sizes n and m, respectively. Consider calculating the following values: The number of...
You're given strings jewels representing the types of stones that are jewels, and stones representing the stones you have. Each character in stones is...
Given an integer array nums and an integer k, return the number of pairs (i, j) where i < j such that |nums[i] - nums[j]| == k. The value of |x| is...