leetcode

All solutions solved on Leetcode. Current solve count: 334. Profile Link: https://leetcode.com/NK04/

View the Project on GitHub nishita-kadian/leetcode

LeetCode solutions

LeetCode “Accepted” submissions. (Profile Link) Current problems solved count: 334

Format:

Row: Question Link Solution in repository
Question at LeetCode [linked] Solution in repository [linked]
01 Matrix Solution
Add Binary Solution
Add Digits Solution
All Paths From Source To Target Solution
Arranging Coins Solution
Array Of Doubled Pairs Solution
Array Partition Solution
Average Of Levels In Binary Tree Solution
Average Salary Excluding The Minimum And Maximum Salary Solution
Backspace String Compare Solution
Bag Of Tokens Solution
Balanced Binary Tree Solution
Best Time To Buy And Sell Stock Ii Solution
Best Time To Buy And Sell Stock Iv Solution
Best Time To Buy And Sell Stock With Cooldown Solution
Best Time To Buy And Sell Stock Solution
Binary Number With Alternating Bits Solution
Binary Search Tree To Greater Sum Tree Solution
Binary Search Solution
Binary Tree Inorder Traversal Solution
Binary Tree Level Order Traversal Solution
Binary Tree Paths Solution
Binary Tree Postorder Traversal Solution
Binary Tree Preorder Traversal Solution
Binary Tree Right Side View Solution
Binary Tree Zigzag Level Order Traversal Solution
Binary Watch Solution
Build An Array With Stack Operations Solution
Can Place Flowers Solution
Candy Solution
Capitalize The Title Solution
Check If The Sentence Is Pangram Solution
Climbing Stairs Solution
Combination Sum Iii Solution
Combination Sum Solution
Combinations Solution
Construct Binary Tree From Inorder And Postorder Traversal Solution
Construct Binary Tree From Preorder And Inorder Traversal Solution
Container With Most Water Solution
Contains Duplicate Solution
Convert Binary Number In A Linked List To Integer Solution
Convert Sorted Array To Binary Search Tree Solution
Count Common Words With One Occurrence Solution
Count Complete Tree Nodes Solution
Count Negative Numbers In A Sorted Matrix Solution
Count Nodes Equal To Average Of Subtree Solution
Count Number Of Nice Subarrays Solution
Count Number Of Teams Solution
Count Odd Numbers In An Interval Range Solution
Count Primes Solution
Count The Number Of Consistent Strings Solution
Counting Bits Solution
Counting Words With A Given Prefix Solution
Course Schedule Ii Solution
Course Schedule Solution
Crawler Log Folder Solution
Create Target Array In The Given Order Solution
Daily Temperatures Solution
Decompress Run Length Encoded List Solution
Decrypt String From Alphabet To Integer Mapping Solution
Deepest Leaves Sum Solution
Delete Node In A Linked List Solution
Delete The Middle Node Of A Linked List Solution
Detect Capital Solution
Diameter Of Binary Tree Solution
Distribute Candies To People Solution
Divide Array In Sets Of K Consecutive Numbers Solution
Divisor Game Solution
Duplicate Zeros Solution
Evaluate Boolean Binary Tree Solution
Excel Sheet Column Number Solution
Fibonacci Number Solution
Final Prices With A Special Discount In A Shop Solution
Final Value Of Variable After Performing Operations Solution
Find A Corresponding Node Of A Binary Tree In A Clone Of That Tree Solution
Find All Numbers Disappeared In An Array Solution
Find And Replace Pattern Solution
Find Center Of Star Graph Solution
Find Eventual Safe States Solution
Find First And Last Position Of Element In Sorted Array Solution
Find Greatest Common Divisor Of Array Solution
Find If Path Exists In Graph Solution
Find Minimum In Rotated Sorted Array Solution
Find Mode In Binary Search Tree Solution
Find Numbers With Even Number Of Digits Solution
Find Pivot Index Solution
Find Target Indices After Sorting Array Solution
Find The City With The Smallest Number Of Neighbors At A Threshold Distance Solution
Find The Difference Solution
Find The Duplicate Number Solution
Find The Town Judge Solution
Find The Winner Of An Array Game Solution
Find The Winner Of The Circular Game Solution
First Bad Version Solution
First Unique Character In A String Solution
Fizz Buzz Solution
Flatten Binary Tree To Linked List Solution
Flipping An Image Solution
Flood Fill Solution
Frog Jump Solution
Furthest Building You Can Reach Solution
Gas Station Solution
Get Maximum In Generated Array Solution
Group Anagrams Solution
Guess Number Higher Or Lower Solution
Hamming Distance Solution
Hand Of Straights Solution
Height Checker Solution
House Robber Ii Solution
House Robber Solution
How Many Numbers Are Smaller Than The Current Number Solution
Implement Queue Using Stacks Solution
Implement Stack Using Queues Solution
Increasing Order Search Tree Solution
Insert Into A Binary Search Tree Solution
Integer Break Solution
Interleaving String Solution
Intersection Of Two Arrays Ii Solution
Intersection Of Two Arrays Solution
Intersection Of Two Linked Lists Solution
Invert Binary Tree Solution
Is Subsequence Solution
Isomorphic Strings Solution
Jump Game Iii Solution
K Closest Points To Origin Solution
Keys And Rooms Solution
Kids With The Greatest Number Of Candies Solution
Kth Largest Element In An Array Solution
Kth Smallest Element In A Bst Solution
Largest Number Solution
Largest Rectangle In Histogram Solution
Last Stone Weight Solution
Leaf Similar Trees Solution
Lemonade Change Solution
Length Of Last Word Solution
Letter Tile Possibilities Solution
Linked List Cycle Solution
Longest Common Prefix Solution
Longest Consecutive Sequence Solution
Longest Increasing Subsequence Solution
Longest Palindrome Solution
Longest Substring Without Repeating Characters Solution
Lowest Common Ancestor Of A Binary Search Tree Solution
Lowest Common Ancestor Of A Binary Tree Solution
Majority Element Solution
Make The String Great Solution
Matrix Diagonal Sum Solution
Maximum 69 Number Solution
Maximum Area Of A Piece Of Cake After Horizontal And Vertical Cuts Solution
Maximum Depth Of Binary Tree Solution
Maximum Erasure Value Solution
Maximum Ice Cream Bars Solution
Maximum Nesting Depth Of The Parentheses Solution
Maximum Number Of Words Found In Sentences Solution
Maximum Population Year Solution
Maximum Product Difference Between Two Pairs Solution
Maximum Score After Splitting A String Solution
Maximum Subarray Solution
Maximum Twin Sum Of A Linked List Solution
Maximum Units On A Truck Solution
Median Of Two Sorted Arrays Solution
Merge Intervals Solution
Merge Sorted Array Solution
Merge Two Binary Trees Solution
Merge Two Sorted Lists Solution
Middle Of The Linked List Solution
Min Cost Climbing Stairs Solution
Min Cost To Connect All Points Solution
Minimize Maximum Pair Sum In Array Solution
Minimum Absolute Difference In Bst Solution
Minimum Add To Make Parentheses Valid Solution
Minimum Cost To Move Chips To The Same Position Solution
Minimum Deletions To Make Character Frequencies Unique Solution
Minimum Depth Of Binary Tree Solution
Minimum Distance Between Bst Nodes Solution
Minimum Falling Path Sum Solution
Minimum Index Sum Of Two Lists Solution
Minimum Moves To Equal Array Elements Ii Solution
Minimum Number Of Vertices To Reach All Nodes Solution
Minimum Operations To Reduce X To Zero Solution
Minimum Time To Type Word Using Special Typewriter Solution
Most Profit Assigning Work Solution
Move Zeroes Solution
N Ary Tree Postorder Traversal Solution
N Ary Tree Preorder Traversal Solution
N Th Tribonacci Number Solution
Network Delay Time Solution
Next Greater Element I Solution
Next Greater Node In Linked List Solution
Next Permutation Solution
Number Of 1 Bits Solution
Number Of Enclaves Solution
Number Of Good Pairs Solution
Number Of Islands Solution
Number Of Operations To Make Network Connected Solution
Number Of Provinces Solution
Number Of Recent Calls Solution
Number Of Steps To Reduce A Number To Zero Solution
Number Of Times Binary String Is Prefix Aligned Solution
Palindrome Linked List Solution
Palindrome Number Solution
Palindromic Substrings Solution
Parsing A Boolean Expression Solution
Partition Array For Maximum Sum Solution
Pascals Triangle Ii Solution
Path Sum Ii Solution
Path Sum Solution
Path With Maximum Probability Solution
Permutations Ii Solution
Permutations Solution
Plus One Solution
Populating Next Right Pointers In Each Node Ii Solution
Populating Next Right Pointers In Each Node Solution
Possible Bipartition Solution
Power Of Four Solution
Power Of Three Solution
Power Of Two Solution
Pow(x, n) Solution
Prime Number Of Set Bits In Binary Representation Solution
Product Of Array Except Self Solution
Rabbits In Forest Solution
Range Sum Of Bst Solution
Range Sum Of Sorted Subarray Sums Solution
Ransom Note Solution
Reduce Array Size To The Half Solution
Reducing Dishes Solution
Redundant Connection Solution
Relative Ranks Solution
Remove All Adjacent Duplicates In String Ii Solution
Remove All Adjacent Duplicates In String Solution
Remove Colored Pieces If Both Neighbors Are The Same Color Solution
Remove Duplicates From Sorted Array Solution
Remove Duplicates From Sorted List Solution
Remove Linked List Elements Solution
Remove Nth Node From End Of List Solution
Remove Outermost Parentheses Solution
Remove Palindromic Subsequences Solution
Reshape The Matrix Solution
Reverse Linked List Solution
Reverse String Solution
Reverse Vowels Of A String Solution
Richest Customer Wealth Solution
Roman To Integer Solution
Root Equals Sum Of Children Solution
Rotate Array Solution
Rotate Image Solution
Rotting Oranges Solution
Running Sum Of 1d Array Solution
Same Tree Solution
Search A 2d Matrix Solution
Search In A Binary Search Tree Solution
Search Insert Position Solution
Set Mismatch Solution
Shortest Path In Binary Matrix Solution
Shuffle String Solution
Shuffle The Array Solution
Simplified Fractions Solution
Single Element In A Sorted Array Solution
Single Number Iii Solution
Single Number Solution
Smallest String With Swaps Solution
Sort An Array Solution
Sort Array By Parity Ii Solution
Sort Array By Parity Solution
Sort Characters By Frequency Solution
Sort Colors Solution
Sort List Solution
Sorting The Sentence Solution
Sqrt(x) Solution
Squares Of A Sorted Array Solution
Stone Game Solution
Subsets Ii Solution
Subsets Solution
Subtract The Product And Sum Of Digits Of An Integer Solution
Subtree Of Another Tree Solution
Successful Pairs Of Spells And Potions Solution
Sum Of All Odd Length Subarrays Solution
Sum Of All Subset Xor Totals Solution
Sum Of Left Leaves Solution
Sum Of Nodes With Even Valued Grandparent Solution
Sum Of Root To Leaf Binary Numbers Solution
Sum Of Subarray Ranges Solution
Sum Of Two Integers Solution
Swap Nodes In Pairs Solution
Swapping Nodes In A Linked List Solution
Symmetric Tree Solution
Three Divisors Solution
Time Needed To Inform All Employees Solution
To Lower Case Solution
Top K Frequent Elements Solution
Trapping Rain Water Solution
Triangle Solution
Two City Scheduling Solution
Two Sum II Input Array Is Sorted Solution
Two Sum IV - Input is a Bst Solution
Two Sum Solution
Univalued Binary Tree Solution
Valid Anagram Solution
Valid Mountain Array Solution
Valid Palindrome Solution
Valid Parentheses Solution
Valid Perfect Square Solution
Validate Binary Search Tree Solution
Video Stitching Solution
Word Break Solution
Word Pattern Solution
Xor Operation In An Array Solution
Binary Tree Tilt Solution
Remove Covered Intervals Solution
Second Minimum Node In A Binary Tree Solution
Count Good Nodes In Binary Tree Solution
Maximum Binary Tree Solution
Construct Binary Search Tree From Preorder Traversal Solution
Construct String From Binary Tree Solution