Skip to content

anuragkj/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

LeetCode

Solutions to some of the questions on the LeetCode website.

The questions are divided into 3 levels of difficulty:

  • Easy
  • Medium
  • Hard

Solutions

Problem Solution Problem Statement Difficulty
LC0001.py Summary Ranges Easy
LC0002.py Majority Element II Medium
LC0003.py Equal Row and Column Pairs Medium
LC0004.py Minimum Absolute Difference in BST Easy
LC0004.py Minimum Distance Between BST Nodes Easy
LC0005.py Maximum Level Sum of a Binary Tree Medium
LC0006.py Two Sum Easy
LC0007.py Number of Ways to Reorder Array to Get Same BST Hard
LC0008.py Add two Numbers Medium
LC0009.py Make Array Strictly Increasing Hard
LC0010.py Longest Substring Without Repeating Characters Medium
LC0011.py Number of Increasing Paths in a Grid Hard
LC0012.py Find the Highest Altitude Easy
LC0013.py K Radius Subarray Averages Medium
LC0014.py Median of Two Sorted Arrays Hard
LC0015.py Minimum Cost to Make Array Equal Hard
LC0016.py Best Time to Buy and Sell Stock with Transaction Fee Medium
LC0017.py Longest Arithmetic Subsequence Medium
LC0018.py Tallest Billboard Hard
LC0019.py Count All Possible Routes Hard
LC0020.py Total Cost to Hire K Workers Medium
LC0021.py Find K Pairs with Smallest Sums Medium
LC0022.py Path with Maximum Probability Medium
LC0023.py Shortest Path to Get All Keys Hard
LC0024.py Last Day Where You Can Still Cross Hard
LC0025.py Fair Distribution of Cookies Medium
LC0026.py Maximum Number of Achievable Transfer Requests Hard
LC0027.py Buddy Strings Easy
LC0028.py Single Number II Medium
LC0029.py Longest Subarray of 1's After Deleting One Element Medium
LC0030.py Minimum Size Subarray Sum Medium
LC0031.py Maximize the Confusion of an Exam Medium
LC0032.py Put Marbles in Bags Hard
LC0033.py Substring With Largest Variance Hard
LC0034.py Minimum Depth of Binary Tree Easy
LC0035.py All Nodes Distance K in Binary Tree Medium
LC0036.py Find Eventual Safe States Medium
LC0037.py Course Schedule Medium
LC0038.py Longest Arithmetic Subsequence of Given Difference Medium
LC0039.py Maximum Number of Events That Can Be Attended II Hard
LC0040.py Smallest Sufficient Team Hard
LC0041.py Add Two Numbers II Medium
LC0042.py LRU Cache Medium
LC0043.py Non-overlapping Intervals Medium
LC0044.py Asteroid Collision Medium
LC0045.py Number of Longest Increasing Subsequence Medium
LC0046.py Longest Increasing Subsequence Medium
LC0047.py Knight Probability in Chessboard Medium
LC0048.py All Possible Full Binary Trees Medium
LC0049.py Pow(x, n) Medium
LC0050.py Peak Index in a Mountain Array Medium
LC0051.py Minimum Speed to Arrive on Time Medium
LC0052.py Maximum Running Time of N Computers Hard
LC0053.py Predict the Winner Medium
LC0054.py Soup Servings Medium
LC0055.py Strange Printer Hard
LC0056.py Minimum ASCII Delete Sum for Two Strings Medium
LC0057.py Combinations Medium
LC0058.py Permutations Medium
LC0059.py Letter Combinations of a Phone Number Medium
LC0060.py Word Break Medium
LC0061.py Unique Binary Search Trees Medium
LC0062.py Unique Binary Search Trees II Medium
LC0063.py Number of Music Playlists Hard
LC0064.py Search a 2D Matrix Hard
LC0065.py Search in Rotated Sorted Array Medium
LC0066.py Minimize the Maximum Difference of Pairs Medium
LC0067.py Search in Rotated Sorted Array II Medium
LC0068.py Coin Change II Medium
LC0069.py Unique Paths II Medium
LC0070.py Check if There is a Valid Partition For The Array Medium
LC0071.py Kth Largest Element in an Array Medium
LC0072.py Partition List Medium
LC0073.py Sliding Window Maximum Hard
LC0074.py 01 Matrix Medium
LC0075.py Maximal Network Rank Medium
LC0076.py Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree Hard
LC0077.py Sort Items by Groups Respecting Dependencies Hard
LC0078.py Reorganize String Medium
LC0079.py Excel Sheet Column Title Easy
LC0080.py Repeated Substring Pattern Easy
LC0081.py Text Justification Hard
LC0082.py Interleaving String Medium
LC0083.py Maximum Length of Pair Chain Medium
LC0084.py Frog Jump Hard
LC0085.py Implement Stack using Queues Easy
LC0086.py Minimum Penalty for a Shop Medium
LC0087.py Minimum Replacements to Sort the Array Hard
LC0088.py Minimum Number of Taps to Open to Water a Garden Hard
LC0089.py Counting Bits Easy
LC0090.py Extra Characters in a String Medium
LC0091.py Unique Paths Medium
LC0092.py Linked List Cycle Easy
LC0093.py Copy List with Random Pointer Medium
LC0094.py Split Linked List in Parts Medium
LC0095.py Reverse Linked List II Medium
LC0096.py Pascal's Triangle Easy
LC0097.py Combination Sum IV Medium
LC0098.py Count All Valid Pickup and Delivery Options Hard
LC0099.py Group the People Given the Group Size They Belong To Medium
LC0100.py Minimum Deletions to Make Character Frequencies Unique Medium
LC0101.py Candy Hard
LC0102.py Reconstruct Itinerary Hard
LC0103.py Min Cost to Connect All Points Medium
LC0104.py Path With Minimum Effort Medium
LC0105.py Shortest Path Visiting All Nodes Hard
LC0106.py The K Weakest Rows in a Matrix Easy
LC0107.py Find the Duplicate Number Medium
LC0108.py Minimum Operations to Reduce X to Zero Medium
LC0109.py Is Subsequence Easy
LC0110.py Longest String Chain Medium
LC0111.py Champagne Tower Medium
LC0112.py Find the Difference Easy
LC0113.py Smallest Subsequence of Distinct Characters Medium
LC0114.py Remove Duplicate Letters Medium
LC0115.py Decoded String at Index Medium
LC0116.py Sort Array By Parity Easy
LC0117.py Monotonic Array Easy
LC0118.py 132 Pattern Medium
LC0119.py Reverse Words in a String III Easy
LC0120.py Remove Colored Pieces if Both Neighbors are the Same Color Medium
LC0121.py Keys and Rooms Medium
LC0122.py Number of Good Pairs Easy
LC0123.py Design HashMap Easy
LC0124.py Majority Element II Medium
LC0125.py Integer Break Medium
LC0126.py Build Array Where You Can Find The Maximum Exactly K Comparisons Hard
LC0127.py Max Dot Product of Two Subsequences Hard
LC0128.py Find First and Last Position of Element in Sorted Array Medium
LC0129.py Minimum Number of Operations to Make Array Continuous Hard
LC0130.py Number of Flowers in Full Bloom Hard
LC0131.py Find in Mountain Array Hard
LC0132.py Min Cost Climbing Stairs Easy
LC0133.py Painting the Walls Hard
LC0134.py Number of Ways to Stay in the Same Place After Some Steps Hard
LC0135.py Pascal's Triangle II Easy
LC0136.py Validate Binary Tree Nodes Medium
LC0137.py Parallel Courses III Hard
LC0138.py Backspace String Compare Easy
LC0139.py Flatten Nested List Iterator Medium
LC0140.py Constrained Subsequence Sum Hard
LC0141.py Maximum Score of a Good Subarray Hard
LC0142.py Power of Four Easy
LC0143.py Find Largest Value in Each Tree Row Medium
LC0144.py K-th Symbol in Grammar Medium
LC0145.py Binary Trees With Factors Medium
LC0146.py Longest Palindromic Substring Hard
LC0147.py Count Vowels Permutation Hard
LC0148.py Poor Pigs Hard
LC0149.py Sort Integers by The Number of 1 Bits Easy
LC0150.py Find The Original Array of Prefix Xor Medium
LC0151.py Find Mode in Binary Search Tree Easy
LC0152.py Count Nodes Equal to Average of Subtree Medium
LC0153.py Build an Array With Stack Operations Medium
LC0154.py Last Moment Before All Ants Fall Out of a Plank Medium
LC0155.py Find the Winner of an Array Game Medium
LC0156.py Seat Reservation Manager Medium
LC0157.py Eliminate Maximum Number of Monsters Medium
LC0158.py Determine if a Cell Is Reachable at a Given Time Medium
LC0159.py Count Number of Homogenous Substrings Medium
LC0160.py Restore the Array From Adjacent Pairs Medium
LC0161.py Design Graph With Shortest Path Calculator Hard
LC0162.py Bus Routes Hard
LC0163.py Sort Vowels in a String Medium
LC0164.py Unique Length-3 Palindromic Subsequences Medium
LC0165.py Maximum Element After Decreasing and Rearranging Medium
LC0166.py Find Unique Binary String Medium
LC0167.py Minimize Maximum Pair Sum in Array Medium
LC0168.py Frequency of the Most Frequent Element Medium
LC0169.py Reduction Operations to Make the Array Elements Equal Medium
LC0170.py Minimum Amount of Time to Collect Garbage Medium
LC0171.py Count Nice Pairs in an Array Medium
LC0172.py Diagonal Traverse II Medium
LC0173.py Arithmetic Subarrays Medium
LC0174.py Maximum Number of Coins You Can Get Medium
LC0175.py Sum of Absolute Differences in a Sorted Array Medium
LC0176.py Largest Submatrix With Rearrangements Medium
LC0177.py Knight Dialer Medium
LC0178.py Number of Ways to Divide a Long Corridor Hard
LC0179.py Number of 1 Bits Easy
LC0180.py Minimum One Bit Operations to Make Integers Zero Hard
LC0181.py Check If Two String Arrays are Equivalent Easy
LC0182.py Find Words That Can Be Formed by Characters Easy
LC0183.py Minimum Time Visiting All Points Easy
LC0184.py Largest 3-Same-Digit Number in String Easy
LC0185.py Count of Matches in Tournament Easy
LC0186.py Calculate Money in Leetcode Bank Easy
LC0187.py Largest Odd Number in String Easy
LC0188.py Construct String from Binary Tree Easy
LC0189.py Binary Tree Inorder Traversal Easy
LC0190.py Transpose Matrix Easy
LC0191.py Element Appearing More Than 25% In Sorted Array Easy
LC0192.py Maximum Product of Two Elements in an Array Easy
LC0193.py Special Positions in a Binary Matrix Easy
LC0194.py Difference Between Ones and Zeros in Row and Column Medium
LC0195.py Destination City Easy
LC0196.py Valid Anagram Easy
LC0197.py Design a Food Rating System Medium
LC0198.py Maximum Product Difference Between Two Pairs Easy
LC0199.py Image Smoother Easy
LC0200.py Buy Two Chocolates Easy
LC0201.py Widest Vertical Area Between Two Points Containing No Points Medium
LC0202.py Maximum Score After Splitting a String Easy
LC0203.py Path Crossing Easy
LC0204.py Minimum Changes To Make Alternating Binary String Easy
LC0205.py Decode Ways Medium
LC0206.py Number of Dice Rolls With Target Sum Medium
LC0207.py Minimum Time to Make Rope Colorful Medium
LC0208.py String Compression II Hard
LC0209.py Minimum Difficulty of a Job Schedule Hard
LC0210.py Redistribute Characters to Make All Strings Equal Easy
LC0211.py Optimal Partition of String Medium
LC0212.py Largest Substring Between Two Equal Characters Easy
LC0213.py Merge Two Sorted Lists Easy
LC0214.py Merge k Sorted Lists Hard
LC0215.py Assign Cookies Easy
LC0216.py Convert an Array Into a 2D Array With Conditions Medium
LC0217.py Number of Laser Beams in a Bank Medium
LC0217.py Minimum Number of Operations to Make Array Empty Medium
LC0219.py Maximum Profit in Job Scheduling Hard
LC0220.py Arithmetic Slices II - Subsequence Hard
LC0221.py Range Sum of BST Easy
LC0222.py Leaf-Similar Trees Easy
LC0223.py Amount of Time for Binary Tree to Be Infected Medium
LC0224.py Maximum Difference Between Node and Ancestor Medium
LC0225.py Determine if String Halves Are Alike Easy
LC0226.py Minimum Number of Steps to Make Two Strings Anagram Medium
LC0227.py Determine if Two Strings Are Close Medium
LC0228.py Find Players With Zero or One Losses Medium
LC0229.py Insert Delete GetRandom O(1) Medium
LC0230.py Unique Number of Occurrences Easy
LC0231.py Climbing Stairs Easy
LC0232.py Minimum Falling Path Sum Medium
LC0233.py Sum of Subarray Minimums Medium
LC0234.py House Robber Medium
LC0235.py Set Mismatch Easy
LC0236.py Maximum Length of a Concatenated String with Unique Characters Medium
LC0237.py Pseudo-Palindromic Paths in a Binary Tree Medium
LC0238.py Longest Common Subsequence Medium
LC0239.py Out of Boundary Paths Medium
LC0240.py K Inverse Pairs Array Hard
LC0241.py Number of Submatrices That Sum to Target Hard
LC0242.py Implement Queue using Stacks Hard
LC0243.py Evaluate Reverse Polish Notation Medium
LC0244.py Daily Temperatures Medium
LC0245.py Divide Array Into Arrays With Max Difference Medium
LC0246.py Sequential Digits Medium
LC0247.py Partition Array for Maximum Sum Medium
LC0248.py Minimum Window Substring Hard
LC0249.py First Unique Character in a String Easy
LC0250.py Group Anagrams Medium
LC0251.py Sort Characters By Frequency Medium
LC0252.py Perfect Squares Medium
LC0253.py Largest Divisible Subset Medium
LC0254.py Palindromic Substrings Medium
LC0255.py Cherry Pickup II Hard
LC0256.py Majority Element Easy
LC0257.py Find First Palindromic String in the Array Easy
LC0258.py Rearrange Array Elements by Sign Medium
LC0259.py Find Polygon With the Largest Perimeter Medium
LC0260.py Least Number of Unique Integers after K Removals Medium
LC0261.py Furthest Building You Can Reach Medium
LC0262.py Meeting Rooms III Hard
LC0263.py Missing Number Easy
LC0264.py Power of Two Easy
LC0265.py Bitwise AND of Numbers Range Medium
LC0266.py Find the Town Judge Easy
LC0267.py Cheapest Flights Within K Stops Medium
LC0268.py Find All People With Secret Hard
LC0269.py Greatest Common Divisor Traversal Hard
LC0270.py Same Tree Easy
LC0271.py Diameter of Binary Tree Easy
LC0272.py Find Bottom Left Tree Value Medium
LC0273.py Even Odd Tree Medium
LC0274.py Maximum Odd Binary Number Easy
LC0275.py Squares of a Sorted Array Easy
LC0276.py Remove Nth Node From End of List Medium
LC0277.py Bag of Tokens Medium
LC0278.py Minimum Length of String After Deleting Similar Ends Medium
LC0279.py Linked List Cycle Easy
LC0280.py Middle of the Linked List Easy
LC0281.py Count Elements With Maximum Frequency Easy
LC0282.py Minimum Common Value Easy
LC0283.py Intersection of Two Arrays Easy
LC0284.py Custom Sort String Medium
LC0285.py Remove Zero Sum Consecutive Nodes from Linked List Medium
LC0286.py Find the Pivot Integer Easy
LC0287.py Binary Subarrays With Sum Medium
LC0288.py Product of Array Except Self Medium
LC0289.py Contiguous Array Medium
LC0290.py Insert Interval Medium
LC0291.py Minimum Number of Arrows to Burst Balloons Medium
LC0292.py Task Scheduler Medium
LC0293.py Merge In Between Linked Lists Medium
LC0294.py Reverse Linked List Easy
LC0295.py Palindrome Linked List Easy
LC0296.py Reorder List Medium
LC0297.py Find All Duplicates in an Array Medium
LC0298.py First Missing Positive Hard
LC0299.py Subarray Product Less Than K Medium
LC0300.py Length of Longest Subarray With at Most K Frequency Medium
LC0301.py Count Subarrays Where Max Element Appears at Least K Times Medium
LC0302.py Subarrays with K Different Integers Hard
LC0303.py Count Subarrays With Fixed Bounds Hard
LC0304.py Length of Last Word Easy
LC0305.py Isomorphic Strings Easy
LC0306.py Word Search Medium
LC0307.py Maximum Nesting Depth of the Parentheses Easy
LC0308.py Make The String Great Easy
LC0309.py Minimum Remove to Make Valid Parentheses Medium
LC0310.py Valid Parenthesis String Medium
LC0311.py Number of Students Unable to Eat Lunch Easy
LC0312.py Time Needed to Buy Tickets Easy
LC0313.py Reveal Cards In Increasing Order Medium
LC0314.py Remove K Digits Medium
LC0315.py Trapping Rain Water Hard
LC0316.py Maximal Rectangle Hard
LC0317.py Sum of Left Leaves Easy
LC0318.py Sum Root to Leaf Numbers Medium
LC0319.py Add One Row to Tree Medium
LC0320.py Smallest String Starting From Leaf Medium
LC0321.py Island Perimeter Medium
LC0322.py Number of Islands Medium
LC0323.py Find All Groups of Farmland Medium
LC0324.py Find if Path Exists in Graph Easy
LC0325.py Open the Lock Medium
LC0326.py Minimum Height Trees Medium
LC0327.py N-th Tribonacci Number Easy
LC0328.py Longest Ideal Subsequence Medium
LC0329.py Minimum Falling Path Sum II Hard
LC0330.py Freedom Trail Hard
LC0331.py Sum of Distances in Tree Hard
LC0332.py Minimum Number of Operations to Make Array XOR Equal to K Medium
LC0333.py Number of Wonderful Substrings Medium
LC0334.py Reverse Prefix of Word Easy
LC0335.py Largest Positive Integer That Exists With Its Negative Easy
LC0336.py Compare Version Numbers Medium
LC0337.py Boats to Save People Medium
LC0338.py Delete Node in a Linked List Medium
LC0339.py Remove Nodes From Linked List Medium
LC0340.py Double a Number Represented as a Linked List Medium
LC0341.py Relative Ranks Easy
LC0342.py Maximize Happiness of Selected Children Medium
LC0343.py K-th Smallest Prime Fraction Medium
LC0344.py Minimum Cost to Hire K Workers Hard
LC0345.py Largest Local Values in a Matrix Easy
LC0346.py Score After Flipping Matrix Medium
LC0347.py Path with Maximum Gold Medium
LC0348.py Find the Safest Path in a Grid Medium
LC0349.py Delete Leaves With a Given Value Medium
LC0350.py Evaluate Boolean Binary Tree Easy
LC0351.py Distribute Coins in Binary Tree Medium
LC0352.py Find the Maximum Sum of Node Values Hard
LC0353.py Sum of All Subset XOR Totals Easy
LC0354.py Subsets Medium
LC0355.py Palindrome Partitioning Medium
LC0356.py The Number of Beautiful Subsets Medium
LC0357.py Maximum Score Words Formed by Letters Hard
LC0358.py Word Break II Hard
LC0359.py Student Attendance Record II Hard
LC0360.py Special Array With X Elements Greater Than or Equal X Easy
LC0361.py Get Equal Substrings Within Budget Medium
LC0362.py Number of Steps to Reduce a Number in Binary Representation to One Medium
LC0363.py Count Triplets That Can Form Two Arrays of Equal XOR Medium
LC0364.py Single Number III Medium
LC0365.py Score of a String Easy
LC0366.py Reverse String Easy
LC0367.py Append Characters to String to Make Subsequence Medium
LC0368.py Longest Palindrome Easy
LC0369.py Find Common Characters Easy
LC0370.py Hand of Straights Medium
LC0371.py Replace Words Medium
LC0372.py Continuous Subarray Sum Medium
LC0373.py Subarray Sums Divisible by K Medium
LC0374.py Subarray Sums Divisible by K Medium
LC0375.py Relative Sort Array Easy
LC0376.py Sort Colors Medium
LC0377.py Minimum Number of Moves to Seat Everyone Easy
LC0378.py Minimum Increment to Make Array Unique Medium
LC0379.py IPO Hard
LC0380.py Patching Array Hard
LC0381.py Sum of Square Numbers Medium
LC0382.py Most Profit Assigning Work Medium
LC0383.py Minimum Number of Days to Make m Bouquets Medium
LC0384.py Palindromic Substrings Medium
LC0385.py Magnetic Force Between Two Balls Medium
LC0386.py Grumpy Bookstore Owner Medium
LC0387.py Count Number of Nice Subarrays Medium
LC0388.py Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium
LC0389.py Minimum Number of K Consecutive Bit Flips Hard
LC0390.py Binary Search Tree to Greater Sum Tree Medium
LC0391.py Balance a Binary Search Tree Medium
LC0392.py Find Center of Star Graph Easy
LC0393.py Maximum Total Importance of Roads Medium
LC0394.py All Ancestors of a Node in a Directed Acyclic Graph Medium
LC0395.py Remove Max Number of Edges to Keep Graph Fully Traversable Hard
LC0396.py Three Consecutive Odds Easy
LC0397.py Intersection of Two Arrays II Easy
LC0398.py Minimum Difference Between Largest and Smallest Value in Three Moves Medium
LC0399.py Merge Nodes in Between Zeros Medium
LC0400.py Find the Minimum and Maximum Number of Nodes Between Critical Points Medium
LC0401.py Pass the Pillow Easy
LC0402.py Water Bottles Easy
LC0403.py Find the Winner of the Circular Game Medium
LC0404.py Average Waiting Time Medium
LC0405.py Crawler Log Folder Easy
LC0406.py Reverse Substrings Between Each Pair of Parentheses Medium
LC0407.py Robot Collisions Hard
LC0408.py Maximum Score From Removing Substrings Medium
LC0409.py Number of Atoms Hard
LC0410.py Create Binary Tree From Descriptions Medium
LC0411.py Step-By-Step Directions From a Binary Tree Node to Another Medium
LC0412.py Delete Nodes And Return Forest Medium
LC0413.py Number of Good Leaf Nodes Pairs Medium
LC0414.py Lucky Numbers in a Matrix Easy
LC0415.py Find Valid Matrix Given Row and Column Sums Medium
LC0416.py Build a Matrix With Conditions Medium
LC0417.py Sort the People Easy
LC0418.py Sort Array by Increasing Frequency Easy
LC0419.py Sort the Jumbled Numbers Medium
LC0420.py Sort an Array Medium
LC0421.py Find the City With the Smallest Number of Neighbors at a Threshold Distance Medium
LC0422.py Minimum Cost to Convert String I Medium
LC0423.py Second Minimum Time to Reach Destination Hard
LC0424.py Count Number of Teams Medium
LC0425.py Minimum Deletions to Make String Balanced Medium
LC0426.py Filling Bookcase Shelves Medium
LC0427.py Number of Senior Citizens Easy
LC0428.py Minimum Swaps to Group All 1's Together II Medium
LC0429.py Make Two Arrays Equal by Reversing Subarrays Easy
LC0430.py Range Sum of Sorted Subarray Sums Medium
LC0431.py Kth Distinct String in an Array Easy
LC0432.py Minimum Number of Pushes to Type Word II Medium
LC0433.py Integer to English Words Hard
LC0434.py Spiral Matrix III Medium
LC0435.py Magic Squares In Grid Medium
LC0436.py Regions Cut By Slashes Medium
LC0437.py Minimum Number of Days to Disconnect Island Hard
LC0438.py Kth Largest Element in a Stream Easy
LC0439.py Combination Sum II Medium
LC0440.py Find K-th Smallest Pair Distance Hard
LC0441.py Lemonade Change Easy
LC0442.py Maximum Distance in Arrays Medium
LC0443.py Maximum Number of Points with Cost Medium
LC0444.py Ugly Number II Medium
LC0445.py 2 Keys Keyboard Medium
LC0446.py Stone Game II Medium
LC0447.py Strange Printer Hard
LC0448.py Number Complement Easy
LC0449.py Fraction Addition and Subtraction Medium
LC0450.py Find the Closest Palindrome Hard
LC0451.py Binary Tree Postorder Traversal Easy
LC0452.py N-ary Tree Postorder Traversal Easy
LC0453.py Path with Maximum Probability Medium
LC0454.py Count Sub Islands Medium
LC0455.py Most Stones Removed with Same Row or Column Medium
LC0456.py Modify Graph Edge Weights Hard
LC0457.py Convert 1D Array Into 2D Array Easy
LC0458.py Find the Student that Will Replace the Chalk Medium
LC0459.py Sum of Digits of String After Convert Easy
LC0460.py Walking Robot Simulation Medium
LC0461.py Find Missing Observations Medium
LC0462.py Delete Nodes From Linked List Present in Array Medium
LC0463.py Linked List in Binary Tree Medium
LC0464.py Split Linked List in Parts Medium
LC0465.py Spiral Matrix IV Medium
LC0466.py Insert Greatest Common Divisors in Linked List Medium
LC0467.py Minimum Bit Flips to Convert Number Easy
LC0468.py Count the Number of Consistent Strings Easy
LC0469.py XOR Queries of a Subarray Medium
LC0470.py Longest Subarray With Maximum Bitwise AND Medium
LC0471.py Find the Longest Substring Containing Vowels in Even Counts Medium
LC0472.py Minimum Time Difference Medium
LC0473.py Uncommon Words from Two Sentences Easy
LC0474.py Largest Number Medium
LC0475.py Different Ways to Add Parentheses Medium
LC0476.py Shortest Palindrome Hard
LC0477.py Lexicographical Numbers Medium
LC0478.py K-th Smallest in Lexicographical Order Hard
LC0479.py Extra Characters in a String Medium
LC0480.py Find the Length of the Longest Common Prefix Medium
LC0481.py Sum of Prefix Scores of Strings Hard
LC0482.py My Calendar I Medium
LC0483.py My Calendar II Medium
LC0484.py Design Circular Deque Medium
LC0485.py All O`one Data Structure Hard
LC0486.py Design a Stack With Increment Operation Medium
LC0487.py Check If Array Pairs Are Divisible by k Medium
LC0488.py Rank Transform of an Array Easy
LC0489.py Make Sum Divisible by P Medium
LC0490.py Divide Players Into Teams of Equal Skill Medium
LC0491.py Permutation in String Medium
LC0492.py Sentence Similarity III Medium
LC0493.py Minimum String Length After Removing Substrings Easy
LC0494.py Minimum Number of Swaps to Make the String Balanced Medium
LC0495.py Minimum Add to Make Parentheses Valid Medium
LC0496.py Maximum Width Ramp Medium
LC0497.py The Number of the Smallest Unoccupied Chair Medium
LC0498.py Divide Intervals Into Minimum Number of Groups Medium
LC0499.py Smallest Range Covering Elements from K Lists Hard
LC0500.py Maximal Score After Applying K Operations Medium
LC0501.py Separate Black and White Balls Medium
LC0502.py Longest Happy String Medium
LC0503.py Maximum Swap Medium
LC0504.py Count Number of Maximum Bitwise-OR Subsets Medium
LC0505.py Find Kth Bit in Nth Binary String Medium
LC0506.py Parsing A Boolean Expression Hard
LC0507.py Split a String Into the Max Number of Unique Substrings Medium
LC0508.py Kth Largest Sum in a Binary Tree Medium
LC0509.py Cousins in Binary Tree II Medium
LC0510.py Flip Equivalent Binary Trees Medium
LC0511.py Remove Sub-Folders from the Filesystem Medium
LC0512.py Height of Binary Tree After Subtree Removal Queries Hard
LC0513.py Count Square Submatrices with All Ones Medium
LC0514.py Longest Square Streak in an Array Medium
LC0515.py Maximum Number of Moves in a Grid Medium
LC0516.py Minimum Number of Removals to Make Mountain Array Hard
LC0517.py Minimum Total Distance Traveled Hard
LC0518.py Delete Characters to Make Fancy String Easy
LC0519.py Circular Sentence Easy
LC0520.py Rotate String Easy
LC0521.py String Compression III Medium
LC0522.py Minimum Number of Changes to Make Binary String Beautiful Medium
LC0523.py Find if Array Can Be Sorted Medium
LC0524.py Largest Combination With Bitwise AND Greater Than Zero Medium
LC0525.py Maximum XOR for Each Query Medium
LC0526.py Minimum Array End Medium
LC0527.py Shortest Subarray With OR at Least K II Medium
LC0528.py Prime Subtraction Operation Medium

About

Solutions to some LeetCode problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages