# LeetCode

Algorithms, Data Structures, Competitive Coding, and problems from LeetCode with complete Solution Approach, Pseudocode, and Explanation.

## Perform Set Operations on Arrays

In this problem, we’ll be performing some basic set operations on the given arrays like Union, Intersection, and Difference. I found this problem when I was writing a practice test…

## Remove Duplicates from a Sorted Linked List

Remove duplicates from a sorted linked list. In this problem, as the list is already sorted, the duplicates are next to one another and easy to identify. However, as we…

## Count the Duplicates of Array O(N)

In the given problem, we have a sorted array, and we need to count the duplicates of each element. In simple words, we should print the no.of times each element…

## Anagram in Strings

Given, two strings and we need to check if those strings form an anagram. If you are wondering what’s an Anagram? When the characters of one word are obtained from…

## Target Sum – Single Iteration O(N)

Given, a sorted array of elements and we need to find all the pairs of elements that add up equally to a given target sum number, this can be done…

## Binary Search Algorithm

The Binary Search Algorithm, a simple and faster search. But on one condition, we need a sorted array or sort the given array before we perform a binary search. Why…