0% found this document useful (0 votes)
3 views1 page

HashMap - HashSet Programs

The document outlines various tasks related to array manipulation, including printing distinct, duplicate, and unique numbers, checking subsets, counting frequencies, and verifying array equality. It also references several LeetCode problems that involve similar concepts, such as counting pairs with specific properties and checking for pangrams. Additionally, it includes a link to a problem related to stack data structures.

Uploaded by

c74340
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

HashMap - HashSet Programs

The document outlines various tasks related to array manipulation, including printing distinct, duplicate, and unique numbers, checking subsets, counting frequencies, and verifying array equality. It also references several LeetCode problems that involve similar concepts, such as counting pairs with specific properties and checking for pangrams. Additionally, it includes a link to a problem related to stack data structures.

Uploaded by

c74340
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

​ Print all distinct numbers in array


2.​ Print all the duplicate numbers in array
3.​ Print all unique numbers in array
4.​ Check whether array2 is subset of array1
5.​ Count frequency of each number in array
6.​ Check if pair with given Sum exists in unsorted Array - O(N)
7.​ Most frequent element in an array
8.​ Check if two arrays are equal or not

https://leetcode.com/problems/jewels-and-stones/
https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/
https://leetcode.com/problems/number-of-arithmetic-triplets/
https://leetcode.com/problems/check-if-the-sentence-is-pangram/
https://leetcode.com/problems/count-number-of-pairs-with-absolute-difference-k/
https://leetcode.com/problems/unique-morse-code-words/
https://leetcode.com/problems/count-the-number-of-consistent-strings/
https://leetcode.com/problems/decode-the-message/

Stack
https://leetcode.com/problems/next-greater-element-i/

You might also like