This repository will contain solutions of leetcode problems in C language.
Leetcode Profile - https://leetcode.com/akibislam/
Problem Solved - 270/1891
Problem Index:
Problem 1 - Two Sum
Problem 2 - Add Two Numbers
Problem 3 - Longest substring without repeating characters
Problem 4 - Median of Two Sorted Arrays
Problem 5 - Longest Palindromic Substring
Problem 7 - Reverse Integer
Problem 20 - Valid Paranthesis
Problem 21 - Merge Two Sorted Lists
Problem 24 - Swap Nodes in Pairs
Problem 26 - Remove Duplicates from Sorted Array
Problem 27 – Remove Element
Problem 28 - Implement strStr()
Problem 34 - Find First and Last Position of Element in Sorted Array
Problem 35 - Search Insert Position
Problem 53 - Maximum Subarray
Probelm 66 - Plus One
Problem 83 - Remove Duplicates from Sorted List
Problem 86 - Partition List
Problem 88 - Merge Sorted Array
Problem 92 - Reverse Linked List II
Problem 94 - Binary Tree Inorder Traversal
Problem 98 - Validate Binary Search Tree
Problem 100 - Same Tree
Problem 101 - Symmetric Tree
Problem 102 - Binary Tree Level Order Traversal
Problem 104 - Maximum Depth of Binary Tree
Problem 107 - Binary Tree Level Order Traversal II
Problem 108 - Convert Sorted Array to Binary Search Tree
Problem 110 - Balanced Binary Tree
Problem 111 - Minimum Depth of Binary Tree
Problem 112 - Path Sum
Problem 113 - Path Sum II
Problem 114 - Flatten Binary Tree to Linked List
Problem 118 - Pascal's Triangle
Problem 117 - Populating Next Right Pointers in Each Node II
Problem 119 - Pascal's Triangle II
Problem 121 - Best Time to Buy and Sell Stock
Problem 122 - Best Time to Buy and Sell Stock II
Problem 125 - Valid Palindrome
Problem 129 - Sum Root to Leaf Numbers
Problem 136 - Single Number
Problem 141 - Linkedlist cycle
Problem 142 - Linked List Cycle II
Problem 144 - Binary Tree Preorder Traversal
Problem 145 - Binary Tree Postorder Traversal
Problem 155 - Min Stack
Problem 160 - Intersection of Two Linked Lists
Problem 167 - Two Sum II - Input array is sorted
Problem 169 - Majority Element
Problem 173 - Binary Search Tree Iterator
Problem 199 - Binary Tree Right Side View
Problem 203 - Remove Linked List Elements
Problem 206 - Reverse Linked List
Problem 217 - Contains Duplicate
Problem 226 - Invert Binary Tree
Problem 234 - Palindrome Linked List
Problem 235 - Lowest Common Ancestor of a Binary Search Tree
Problem 236 - Lowest Common Ancestor of a Binary Tree
Problem 237 - Delete Node in a Linked List
Problem 257 - Binary Tree Paths
Problem 268 - Missing Number
Problem 283 - Move Zeroes
Problem 328 - Odd Even Linked List
Problem 349 - Intersection of Two Arrays
Problem 350 - Intersection of Two Arrays II
Problem 404 - Sum of Left Leaves
Problem 424 - Longest Repeating Character Replacement
Problem 429 - N-ary Tree Level Order Traversal
Problem 437 - Path Sum III
Problem 445 - Add Two Numbers II
Problem 448 - Find All Numbers Disappeared in an Array
Problem 450 - Delete Node in a BST
Problem 463 - Island Perimeter
Problem 485 - Max Consecutive Ones
Problem 495 - Teemo Attacking
Problem 496 - Next Greater Element I
Problem 500 - Keyboard Row
Problem 501 - Find Mode in Binary Search Tree
Problem 506 - Relative Ranks
Problem 508 - Most Frequent Subtree Sum
Problem 513 - Find Bottom Left Tree Value
Problem 515 - Find Largest Value in Each Tree Row
Problem 530 - Minimum Absolute Difference in BST
Problem 538 - Convert BST to Greater Tree
Problem 543 - Diameter of Binary Tree
Problem 559 - Maximum Depth of N-ary Tree
Problem 561 - Array Partition I
Problem 563 - Binary Tree Tilt
Problem 566 - Reshape the Matrix
Problem 572 - Subtree of Another Tree
Problem 575 - Distribute Candies
Problem 589 - N-ary Tree Preorder Traversal
Problem 590 - N-ary Tree Postorder Traversal
Problem 599 - Minimum Index Sum of Two Lists
Problem 606 - Construct String from Binary Tree
Problem 617 - Merge Two Binary Trees
Problem 637 - Average of Levels in Binary Tree
Problem 643 - Maximum Average Subarray I
Problem 653 - Two Sum IV - Input is a BST
Problem 654 - Maximum Binary Tree
Problem 661 - Image Smoother
Problem 671 - Second Minimum Node In a Binary Tree
Problem 682 - Baseball Game
Problem 697 - Degree of an Array
Problem 700 - Search in a binary search tree
Problem 701 - Insert into a Binary Search Tree
Problem 704 - Binary Search
Problem 705 - Design HashSet
Problem 706 - Design HashMap
Problem 709 - To Lower Case
Problem 725 - Split LinkedList in Parts
Problem 766 - Toeplitz Matrix
Problem 771 - Jewels and Stones
Problem 783 - Minimum Distance Between BST Nodes
Problem 804 - Unique Morse Code Words
Problem 806 - Number of Lines To Write String
Problem 811 - Subdomain Visit Count
Problem 814 - Binary Tree Pruning
Problem 817 - Linked List Components
Problem 821 - Shortest Distance to a Character
Problem 832 - Flipping an Image
Problem 852 - Peak Index in a Mountain Array
Problem 863 - All Nodes Distance K in Binary Tree
Problem 865 - Smallest Subtree with all the Deepest Nodes
Problem 867 - Transpose Matrix
Problem 872 - Leaf-Similar Trees
Problem 876 - Middle of the Linked List
Problem 883 - Projection Area of 3D Shapes
Problem 888 - Fair Candy Swap
Problem 893 - Groups of Special-Equivalent Strings
Problem 896 - Monotonic Array
Problem 897 - Increasing Order Search Tree
Problem 905 - Sort Array By Parity
Problem 908 - Smallest Range I
Problem 912 - Sort an Array
Problem 919 - Complete Binary Tree Inserter
Problem 922 - Sort Array By Parity II
Problem 929 - Unique Email Addresses
Problem 938 - Range Sum of BST
Problem 944 - Delete Columns to Make Sorted
Problem 951 - Flip Equivalent Binary Trees
Problem 958 - Check Completeness of a Binary Tree
Problem 961 - N-Repeated Element in Size 2N Array
Problem 965 - Univalued Binary Tree
Problem 976 - Largest Perimeter Triangle
Problem 977 - Squares of a Sorted Array
Problem 979 - Distribute Coins in Binary Tree
Problem 985 - Sum of Even Numbers After Queries
Problem 993 - Cousins in a binary tree
Problem 998 - Maximum Binary Tree II
Problem 999 - Available Captures for Rook
Problem 1002- Find Common Characters
Problem 1004- Max Consecutive Ones III
Problem 1005- Maximize Sum Of Array After K Negations
Problem 1008- Construct Binary Search Tree from Preorder Traversal
Problem 1019- Next Greater Node In Linked List
Problem 1021- Remove Outermost Parentheses
Problem 1022- Sum of Root to Leaf Binary Numbers
Problem 1026- Maximum Difference Between Node and Ancestor
Problem 1030- Matrix Cells in Distance Order
Problem 1038- Binary Search Tree to Greater Sum Tree
Problem 1046- Last Stone Weight
Problem 1047- Remove All Adjacent Duplicates In String
Problem 1051- Height Checker
Problem 1052- Grumpy Bookstore Owner
Problem 1108- Defanging an IP Address
Problem 1110- Delete Nodes And Return Forest
Problem 1104- Path In Zigzag Labelled Binary Tree
Problem 1122- Relative Sort Array
Problem 1123- Lowest Common Ancestor of Deepest Leaves
Problem 1160- Find Words That Can Be Formed by Characters
Problem 1161- Maximum Level Sum of a Binary Tree
Problem 1200- Minimum Absolute Difference
Problem 1207- Unique Number of Occurrences
Problem 1217- Minimum Cost to Move Chips to The Same Position
Problem 1221- Split a string in balanced strings
Problem 1252- Cells with Odd Values in a Matrix
Problem 1260- Shift 2D Grid
Problem 1261- Find Elements in a Contaminated Binary Tree
Problem 1266- Minimum Time Visiting All Points
Problem 1281- Subtract the Product and Sum of Digits of an Integer
Problem 1287- Element Appearing More Than 25% In Sorted Array
Problem 1290- Convert Binary Number in a Linked List to Integer
Problem 1295- Find Numbers with Even Number of Digits
Problem 1299- Replace Elements with Greatest Element on Right Side
Problem 1302- Deepest Leaves Sum
Problem 1304- Find N Unique Integers Sum up to Zero
Problem 1305- All Elements in Two Binary Search Trees
Problem 1309- Decrypt String from Alphabet to Integer Mapping
Problem 1313- Decompress Run-Length Encoded List
Problem 1315- Sum of Nodes with Even-Valued Grandparent
Problem 1325- Delete Leaves With a Given Value
Problem 1331- Rank Transform of an Array
Problem 1337- The K Weakest Rows in a Matrix
Problem 1339- Maximum Product of Splitted Binary Tree
Problem 1342- Number of steps to reduce a number to zero
Problem 1351- Count Negative Numbers in a Sorted Matrix
Problem 1356- Sort Integers by The Number of 1 Bits
Problem 1365- How Many Numbers Are Smaller Than the Current Number
Problem 1367- Linked List in Binary Tree
Problem 1379- Find a Corresponding Node of a Binary Tree in a Clone of That Tree
Problem 1380- Lucky Numbers in a Matrix
Problem 1382- Balance a Binary Search Tree
Problem 1385- Find the Distance Value Between Two Arrays
Problem 1389- Create Target Array in a given order
Problem 1394- Find Lucky Integer in an Array
Problem 1403- Minimum Subsequence in Non-Increasing Order
Problem 1413- Minimum Value to Get Positive Step by Step Sum
Problem 1431- Kids With the Greatest Number of Candies
Problem 1437- Check If All 1's Are at Least Length K Places Away
Problem 1441- Build an Array With Stack Operations
Problem 1448- Count Good Nodes in Binary Tree
Problem 1450- Number of Students Doing Homework at a Given Time
Problem 1456- Maximum Number of Vowels in a Substring of Given Length
Probelm 1457- Pseudo-Palindromic Paths in a Binary Tree
Problem 1460- Make Two Arrays Equal by Reversing Sub-arrays
Problem 1464- Maximum Product of Two Elements in an Array
Problem 1470- Shuffle the Array
Problem 1475- Final Prices With a Special Discount in a Shop
Problem 1480- Running Sum of 1d Array
Problem 1491- Average Salary Excluding the Minimum and Maximum Salary
Problem 1502- Can Make Arithmetic Progression From Sequence
Problem 1512- Number of Good Pairs
Problem 1528- Shuffle String
Problem 1530- Number of Good Leaf Nodes Pairs
Problem 1534- Count Good Triplets
Problem 1539- Kth Missing Positive Number
Problem 1544- Make The String Great
Problem 1550- Three Consecutive Odds
Problem 1560- Most Visited Sector in a Circular Track
Problem 1572- Matrix Diagonal Sum
Problem 1582- Special Positions in a Binary Matrix
Problem 1588- Sum of All Odd Length Subarrays
Problem 1598- Crawler Log Folder
Problem 1608- Special Array With X Elements Greater Than or Equal X
Problem 1614- Maximum Nesting Depth of the Parentheses
Problem 1619- Mean of Array After Removing Some Elements
Problem 1629- Slowest Key
Problem 1636- Sort Array by Increasing Frequency
Problem 1640- Check Array Formation Through Concatenation
Problem 1652- Defuse the Bomb
Problem 1662- Check If Two String Arrays are Equivalent
Problem 1669- Merge In Between Linked Lists
Problem 1670- Design Front Middle Back Queue
Problem 1672- Richest Customer Wealth
Problem 1678- Goal Parser Interpretation
Problem 1684- Count the Number of Consistent Strings
Problem 1700- Number of Students Unable to Eat Lunch
Problem 1704- Determine if String Halves Are Alike
Problem 1710- Maximum Units on a Truck
Problem 1720- Decode XORed Array
Problem 1721- Swapping Nodes in a Linked List
Problem 1725- Number Of Rectangles That Can Form The Largest Square
Problem 1732- Find the Highest Altitude
Problem 1748- Sum of Unique Elements
Problem 1773- Count Items Matching a Rule
Problem 1779- Find Nearest Point That Has the Same X or Y Coordinate
Problem 1800- Maximum Ascending Subarray Sum
Problem 1816- Truncate Sentence
Problem 1822- Sign of the Product of an Array
Problem 1827- Minimum Operations to Make the Array Increasing
Problem 1832- Check if the Sentence Is Pangram
Problem 1844- Replace All Digits with Characters
Problem 1848- Minimum Distance to the Target Element
Problem 1854- Maximum Population Year
Problem 1859- Sorting the Sentence
Problem 1876- Substrings of Size Three with Distinct Characters
Problem 1880- Check if Word Equals Summation of Two Words
Problem 1913- Maximum Product Difference Between Two Pairs
Problem 1920- Build Array from Permutation
Problem 1929- Concatenation of Array