LearnYard - Free Programming & DSA Blogs | Read, Code, Excel
  • C++ Course
  • DSA Course
  • Online Assessment DSA Questions
  • DSA for Frontend Interview
  • Frontend Interview Experience
  • Low Level Design
  • High Level Design
  • Java Course
  • About
  • Feedback
Sign in Subscribe

Hashing

A collection of 54 posts

Find Common Elements Between Two Arrays Solution In C++/Java/Python/Javascript

Problem Description: You are given two lists of numbers. The first list is called nums1 and the second list is called nums2. Your task is to find: 1. answer1: How many numbers from nums1 are also found in nums2. 2. answer2: How many numbers from nums2 are also found in
06 Nov 2024 12 min read

Isomorphic Strings Solution In C++/Python/Java/Javascript

Problem Description: We are given two strings s, and t, and we need to figure out if they are isomorphic. Two strings s and t are isomorphic if we can replace characters in string s in such a way that it becomes string t. Here are the key points to
06 Nov 2024 13 min read

First Missing Positive Solution In C++/Java/Python/Javascript

Problem Description Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums. For instance, in the array [1, 3, 5, 0, -1, 9], 1 is present, making 2 the smallest positive integer not present. Example 1: Input: nums = [3,4,-1,1] Output:
06 Nov 2024 17 min read

Subarray Sum Equals K

Problem Description Given an array of integer nums and an integer k, return the total number of continuous subarrays whose sum equals k. Examples : Input: nums = [0, 1, 2, 3, 4, 5, 6], k=9 Output: 2 Explanation: There are 2 subarrays whose sum is 9 i.e. [2, 3,
27 Oct 2024 15 min read
← Newer Posts Page 3 of 3
LearnYard - Free Programming & DSA Blogs | Read, Code, Excel © 2026
Powered by Ghost