LeetCode Solutions
A curated collection of my LeetCode solutions — organized, annotated, and styled for easy browsing.
Arrays
Arrays Leetcode Problems List
# Arrays
Build Array From Permutation
Check If N Its Double Exits
Concatenation Of Array
Explanation
# Build Array from Permutation.
Explanation
## Check If N and It's Double Exists - 1346 ```text Given an array arr of integers, check if there exist two indices i and j such that :
Explanation
## Concatenation Of Array
Explanation
## Number of Good Pairs 1512 ```text Given an array of integers nums, return the number of good pairs. A pair (i, j) is called good if nums[i] == nums[j] and i < j.
Explanation
## Range Sum Query 2D - Immutable
Explanation
## Range Sum Query - Immutable - 303 [**Read my solution in leetcode**](/dsa/arrays/Running_Sum_of_1d_Array/)
Explanation
## Running Sum of 1d Array
Explanation
## Search Insert Position
Explanation
## Shuffle the Array 1470 ```text Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn]. Return the array in the form [x1,y1,x2,y2,...,xn,yn].
Number Of Good Pairs
Range Sum Query 2D Immutable
Range Sum Query Immutable
Readme
Find Words That Can Be Formed by Characters
<p
Readme
Greatest Common Divisor of Strings
For two strings <
</a> </article>Readme
Defanging an IP Address
Given a valid (IPv4) IP A phrase is a palindrome if, after c Given Given an input string Given an integer array There You are given a string You own a Goal Parser</st</p>
</a>
</article>
You are given two strings Given the Write an algorithm to determine if a number Given the A Given an integer array Given two strings Given an integer array <co Write a function that reverses a string. The input string Given a string Given two strings Given a string <c Given an integer array You have a long flowerbed in which some of the plot You are given an integer array <c You are given a large integer represented as an inte # DSA Learning Lab
address</</p>
</a>
</article>
Readme
Valid Palindrome
Readme
Linked List Cycle
head, the head of a linked list,Readme
Reverse Words in a String
sReadme
Maximum Product Subarray
nums</cod</p>
</a>
</article>
Readme
Kids With the Greatest Number of Candies
Readme
Shuffle String
s and an integer arraReadme
Goal Parser Interpretation
Readme
Merge Strings Alternately
wor</p>
</a>
</article>
Readme
Remove Nth Node From End of List
head</</p>
</a>
</article>
Readme
Happy Number
n isReadme
Remove Linked List Elements
head ofReadme
Maximum Number of Words Found in Sentences
Readme
Product of Array Except Self
n</p>
</a>
</article>
Readme
Valid Anagram
s and t, returnReadme
Longest Substring Without Repeating Characters
<
Readme
Increasing Triplet Subsequence
Readme
Reverse String
Readme
Reverse Vowels of a String
s, reReadme
Minimum Element After Replacement With Digit Sum
<img src='https://img.shields.io/badge/Difficulty-Easy-brightgreen' alt='Difficulty: EasyReadme
Ransom Note
ransomNote and magazine</c</p>
</a>
</article>
Readme
First Unique Character in a String
Readme
Maximum Subarray
nums, find the <spReadme
Can Place Flowers
Readme
Maximum Average Subarray I
Readme
Plus One
Readme
Running Sum Of 1D Array
Search Insert Position
Shuffle The Array