Skip to content

91d906h4/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

📚This repository consists of some leetcode problem solutions.
(Total solved problems : 851)

ID Title Level Solution Remark
0001 Two Sum Easy JavaScript / Python / Java / C++ / C / Rust
0002 Add Two Numbers Medium Python / C
0003 Longest Substring Without Repeating Characters Mediun Python / C
0004 Median of Two Sorted Arrays Hard JavaScript
0006 Zigzag Conversion Medium Python
0007 Reverse Integer Medium JavaScript / C++
0008 String to Integer (atoi) Medium Python
0009 Palindromem Number Easy JavaScript / Java
0011 Container With Most Water Medium Python
0012 Integer to Roman Medium Python
0013 Roman to Integer Easy JavaScript / Python
0014 Longest Common Prefix Easy JavaScript
0017 Letter Combinations of a Phone Number Medium Python
0020 Valid Parentheses Easy JavaScript / Python / C++
0021 Merge Two Sorted Lists Easy JavaScript
0026 Remove Duplicates from Sorted Array Easy JavaScript
0027 Remove Element Easy JavaScript
0028 Implement strStr() Easy JavaScript / C++
0031 Next Permutation Medium C
0033 Search in Rotated Sorted Array Medium Python Binary Sreach
0034 Find First and Last Position of Element in Sorted Array Easy Python
0035 Search Insert Position Easy JavaScript / Python Binary Sreach
0036 Valid Sudoku Medium Python
0038 Count and Say Medium Python
0041 First Missing Positive Hard Python
0045 Jump Game II Medium C
0046 Permutations Medium Python
0047 Permutations II Medium Python
0048 Rotate Image Medium Python
0049 Group Anagrams Medium Python
0050 Pow(x, n) Medium Python / C
0053 Maximum Subarray Easy JavaScript / Python / Java Kadane's Algorithm
0054 Spiral Matrix Medium Python
0055 Jump Game Medium Python
0058 Length of Last Word Easy JavaScript
0060 Permutation Sequence Hard Python
0061 Rotate List Medium Python
0062 Unique Paths Easy Python / JavaScript / PHP *Mathematical Solution [1]
0065 Valid Number Hard Python Regular Expression
0066 Plus One Easy JavaScript / Python / C++ *Built-in Function Solution [1]
0067 Add Binary Easy Python
0069 Sqrt(x) Easy JavaScript / Python / C Binary Search
0070 Climbing Stairs Easy JavaScript / TyoeScript / PHP / Python / Java
0071 Simplify Path Medium Python / C++
0073 Set Matrix Zeroes Medium Python
0074 Search a 2D Matrix Easy Python / C
0075 Sort Colors Medium Python Counting Sort
0077 Combinations Medium Python
0078 Subsets Medium Python
0080 Remove Duplicates from Sorted Array II Medium Python
0083 Remove Duplicates from Sorted List Easy Python
0088 Merge Sorted Array Easy Python
0089 Gray Code Medium Python
0090 Subsets II Medium Python
0092 Reverse Linked List II Medium Python
0094 Binary Tree Inorder Traversal Easy Python / C Depth-First Search
0098 Validate Binary Search Tree Medium Python BST, Inorder Traversal
0100 Same Tree Easy JavaScript / Python
0101 Symmetric Tree Easy Python Tree
0102 Binary Tree Level Order Traversal Medium Python
0104 Maximum Depth of Binary Tree Easy Python Depth-First Search, Tree
0107 Binary Tree Level Order Traversal II Medium Python
0108 Convert Sorted Array to Binary Search Tree Easy Python
0110 Balanced Binary Tree Easy C++
0111 Minimum Depth of Binary Tree Easy Python Depth-First Search, Tree
0112 Path Sum Easy Python
0113 Path Sum II Medium Python
0119 Pascal's Triangle II Easy Python
0121 Best Time to Buy and Sell Stock Easy Python / Java / C
0122 Best Time to Buy and Sell Stock II Medium Python / Java
0133 Clone Graph Medium Python
0136 Single Number Easy JavaScript / Java / C
0137 Single Number II Medium Python
0138 Copy List with Random Pointer Medium Python / Java
0144 Binary Tree Preorder Traversal Easy Python Depth-First Search, Tree
0145 Binary Tree Postorder Traversal Easy Python Depth-First Search, Tree
0146 LRU Cache Medium Python *Built-in Function Solution [1]
0148 Sort List Medium C
0150 Evaluate Reverse Polish Notation Medium C++
0151 Reverse Words in a String Easy Python
0153 Find Minimum in Rotated Sorted Array Medium Python Binary Sreach
0154 Find Minimum in Rotated Sorted Array II Hard Python
0155 Min Stack Easy Python
0162 Find Peak Element Medium Python
0167 Two Sum II - Input Array Is Sorted Medium JavaScript / Python / PHP
0168 Excel Sheet Column Title Easy C / C++
0169 Second Highest Salary Easy JavaScript
0171 Excel Sheet Column Number Easy Python
0175 Combine Two Tables Easy MySQL
0176 Second Highest Salary Medium MySQL
0177 Nth Highest Salary Medium MySQL
0181 Employees Earning More Than Their Managers Easy MySQL
0182 Duplicate Emails Easy MySQL
0183 Customers Who Never Order Easy MySQL
0184 Department Highest Salary Medium MySQL
0189 Rotate Array Easy Python
0190 Reverse Bits Easy JavaScript
0191 Number of 1 Bits Easy JavaScript / Python
0196 Delete Duplicate Emails Easy MySQL
0197 Rising Temperature Easy MySQL
0202 Happy Number Easy JavaScript / Python
0203 Remove Linked List Elements Easy Python / C++
0204 Count Primes Medium C *Mathematical Solution [1]
0205 Isomorphic Strings Easy JavaScript / Python
0206 Reverse Linked List Easy Python
0209 Minimum Size Subarray Sum Medium C++
0215 Kth Largest Element in an Array Medium Python
0217 Contains Duplicate Easy JavaScript / Python / C++
0219 Contains Duplicate II Easy Python
0225 Implement Stack using Queues Easy Python
0226 Invert Binary Tree Easy Python
0228 Summary Ranges Easy Python
0229 Majority Element II Medium Python
0230 Kth Smallest Element in a BST Medium C / C++
0231 Power of Two Easy Python / Java / C
0232 Implement Queue using Stacks Easy Python
0234 Palindrome Linked List Easy Python
0235 Lowest Common Ancestor of a Binary Search Tree Easy Java
0237 Delete Node in a Linked List Easy Python
0238 Product of Array Except Self Medium Python
0242 Valid Anagram Easy Python
0257 Binary Tree Paths Easy Python
0258 Add Digits Easy Python
0260 Single Number III Medium Python
0263 Ugly Number Easy Python
0268 Missing Number Easy Python
0274 H-Index Medium Python
0275 H-Index II Medium Python
0278 First Bad Version Easy Python / TypeScript / Java / PHP /JavaScript Binary Search
0283 Move Zeroes Easy Python
0287 Find the Duplicate Number Medium Python
0289 Game of Life Mediunm Python
0290 Word Pattern Easy Python
0292 Nim Game Easy Python
0295 Find Median from Data Stream Hard Python
0299 Bulls and Cows Medium Python
0303 Range Sum Query - Immutable Easy Python
0319 Bulb Switcher Medium Python
0326 Power of Three Easy Python
0342 Power of Four Easy JavaScript
0343 Integer Break Medium Python
0344 Reverse String Easy Python
0345 Reverse Vowels of a String Easy Python
0347 Top K Frequent Elements Mediun Python
0349 Intersection of Two Arrays Easy Python
0350 Intersection of Two Arrays II Easy Python
0365 Water and Jug Problem Medium C
0367 Valid Perfect Square Easy Python
0374 Guess Number Higher or Lower Easy Python Binary Sreach
0378 Kth Smallest Element in a Sorted Matrix Mediun Python *Built-in Function Solution [1]
0380 Insert Delete GetRandom O(1) Mediun Python
0383 Ransom Note Easy Python
0384 Shuffle an Array Mediun Python
0387 First Unique Character in a String Easy Python
0389 Find the Difference Easy Python
0392 Is Subsequence Easy Python
0398 Random Pick Index Easy Python
0404 Sum of Left Leaves Easy Python
0405 Convert a Number to Hexadecimal Easy Python
0409 Longest Palindrome Easy Python / Java
0412 Fizz Buzz Easy JavaScript
0415 Add Strings Easy JavaScript / Python *Built-in Function Solution [1]
0419 Battleships in a Board Medium Python Depth-First Search
0424 Longest Repeating Character Replacement Medium Python / JavaScript / Java / PHP
0434 Number of Segments in a String Easy Python
0438 Find All Anagrams in a String Medium Python Sliding Window
0441 Arranging Coins Easy Python Binary Search
0443 String Compression Medium Python
0445 Add Two Numbers II Medium Python
0448 Find All Numbers Disappeared in an Array Easy Python
0451 Sort Characters By Frequency Medium Python
0452 Minimum Number of Arrows to Burst Balloons Medium Python
0453 Minimum Moves to Equal Array Elements Medium Python / Java
0459 Repeated Substring Pattern Easy Python / C++
0461 Hamming Distance Easy Python / Java
Note Bitwise Operations on Integer Types
0470 Implement Rand10() Using Rand7() Medium Python
0476 LNumber Complement Easy Python
0482 License Key Formatting Easy Python
0485 Max Consecutive Ones Easy Python
0492 Construct the Rectangle Easy Python
0495 Teemo Attacking Easy Python
0496 Next Greater Element I Easy JavaScript / Python
0500 Keyboard Row Easy Python
0504 Base 7 Easy Python
0506 Relative Ranks Easy Python
0507 Perfect Number Easy Python
0509 Fibonacci Number Easy Python / Java / JavaScript / TypeScript / PHP / C++
0511 Game Play Analysis I Easy Python
0520 Detect Capital Easy Python
0521 Longest Uncommon Subsequence I Easy Python
0530 Minimum Absolute Difference in BST Easy Python
0532 K-diff Pairs in an Array Medium Python
0535 Encode and Decode TinyURL Medium Python / C++
0537 Complex Number Multiplication Medium Python
0541 Reverse String II Easy Python
0551 Student Attendance Record I Easy MySQL
0557 Reverse Words in a String III Easy JavaScript / Python
0561 Array Partition I Easy JavaScript
0566 Reshape the Matrix Easy Python
0567 Permutation in String Easy Python
0575 Distribute Candies Easy Python
0577 Employee Bonus Easy MySQL
0584 Find Customer Referee Easy MySQL
0586 Customer Placing the Largest Number of Orders Easy MySQL
0589 N-ary Tree Preorder Traversal Easy Python Tree
0590 N-ary Tree Postorder Traversal Easy Python Tree
0593 Valid Square Medium Python
0595 Big Countries Easy MySQL
0596 Classes More Than 5 Students Easy MySQL
0599 Minimum Index Sum of Two Lists Easy Python
0605 Can Place Flowers Easy Python - C++
0606 Construct String from Binary Tree Easy Python
0607 Sales Person Easy MySQL
0610 Triangle Judgement Easy MySQL
0609 Find Duplicate File in System Medium Python
0620 Not Boring Movies Easy MySQL
0626 Exchange Seats Medium MySQL
0627 Swap Salary Easy MySQL
0633 Sum of Square Numbers Medium Python
0637 Average of Levels in Binary Tree Easy Python
0643 Maximum Average Subarray I Easy Python
0645 Set Mismatch Easy Python
Note Time Complexity
0650 2 Keys Keyboard Medium Python
0654 Maximum Binary Tree Medium C
0661 Image Smoother Easy Python
0657 Robot Return to Origin Easy Python
0670 Maximum Swap Medium Python
0674 Longest Continuous Increasing Subsequence Easy Python
0682 Baseball Game Easy Python
0684 Redundant Connection Medium Python
0692 Top K Frequent Words Medium Python
0693 Binary Number with Alternating Bits Easy Python
0695 Max Area of Island Medium Python Depth-First Search
0696 Count Binary Substrings Easy Python / C++
0697 Degree of an Array Easy Python
0700 Search in a Binary Search Tree Easy Python
0701 Insert into a Binary Search Tree Medium C++
0704 Binary Search Easy Python / Java / C / C++ Binary Search
0705 Design HashSet Easy Python
0706 Design HashMap Easy Python
0707 Design Linked List Medium Python
0709 To Lower Case Easy JavaScript / Python
0724 Find Pivot Index Easy Python
0728 Self Dividing Numbers Easy JavaScript
0733 Flood Fill Easy Python / JavaScript / TyoeScript Depth-First Search
0744 Find Smallest Letter Greater Than Target Easy Python / C
0746 Min Cost Climbing Stairs Easy Python Dynamic programming
0747 Largest Number At Least Twice of Others Easy Python
0748 Shortest Completing Word Easy Python
0762 Prime Number of Set Bits in Binary Representation Easy Python
0763 Partition Labels Medium Python
0771 Jewels and Stones Easy JavaScript / Java / C++
0776 Toeplitz Matrix Easy Python
0779 K-th Symbol in Grammar Medium Python
0784 Letter Case Permutation Medium Python
0791 Custom Sort String Medium Python
0796 Rotate String Easy JavaScript
0804 Unique Morse Code Words Easy JavaScript
0806 Number of Lines To Write String Easy Python
0807 Max Increase to Keep City Skyline Medium Python
0811 Subdomain Visit Count Medium Python Hash Table
0814 Binary Tree Pruning Medium C++
0819 Most Common Word Easy Python
0821 Shortest Distance to a Character Easy Python / Java
0824 Goat Latin Easy Python
0830 Positions of Large Groups Easy Python
0831 Masking Personal Information Medium Python
0832 Flipping an Image Easy JavaScript
0833 Projection Area of 3D Shapes Easy Python / Java
0836 Rectangle Overlap Easy Python
0841 Keys and Rooms Easy Python
0844 Backspace String Compare Easy JavaScript / Python
0852 Peak Index in a Mountain Array Medium Python / C Binary Search
0859 Buddy Strings Easy Python / Rust
0860 Lemonade Change Easy Python
0867 Transpose Matrix Easy JavaScript
0868 Binary Gap Easy JavaScript
0869 Reordered Power of 2 Medium Python
0872 Leaf-Similar Trees Easy Python
0876 Middle of the Linked List Easy Python
0881 Boats to Save People Medium C++
0884 Uncommon Words from Two Sentences Easy Python
0884 Uncommon Words from Two Sentences Easy Python
0888 Fair Candy Swap Easy JavaScript
0890 Find and Replace Pattern Medium Python
0896 Monotonic Array Easy JavaScript / C++
0905 Sort Array By Parity Easy JavaScript / Python
0908 Smallest Range I Easy Python
0912 Sort an Array Medium Python
0914 X of a Kind in a Deck of Cards Easy Python
0917 Reverse Only Letters Easy JavaScript
0921 Minimum Add to Make Parentheses Valid Medium Python
0922 Sort Array By Parity II Easy JavaScript
0925 Long Pressed Name Easy Python
0933 Number of Recent Calls Easy Python
0937 Reorder Data in Log Files Easy Python
0938 Valid Mountain Array Easy Python
0941 Range Sum of BST Easy Python
0942 DI String Match Easy Python
0944 Delete Columns to Make Sorted Easy Python
0946 Validate Stack Sequences Medium Python
0950 Reveal Cards In Increasing Order Medium Python
0953 Verifying an Alien Dictionary Easy Python
0961 N-Repeated Element in Size 2N Array Easy Python
0965 Univalued Binary Tree Easy Python / Java
0973 K Closest Points to Origin Medium Python
0976 Largest Perimeter Triangle Easy Python
0977 Squares of a Sorted Array Easy Python
0988 Smallest String Starting From Leaf Medium Python
0989 Add to Array-Form of Integer Easy Python
0997 Find the Town Judge Easy Python
1002 Find Common Characters Easy Python
1005 Maximize Sum Of Array After K Negations Easy Python
1009 Complement of Base 10 Integer Easy Python
1010 Pairs of Songs With Total Durations Divisible by 60 Medium Python
1013 Partition Array Into Three Parts With Equal Sum Easy Python / C++
1016 Binary String With Substrings Representing 1 To N Medium Python
1017 Convert to Base -2 Medium Python Negative Base
1018 Binary Prefix Divisible By 5 Easy Python
1021 Remove Outermost Parentheses Easy Python
1025 Divisor Game Easy Python
1037 Valid Boomerang Easy JavaScript / Python
1038 Binary Search Tree to Greater Sum Tree Medium C
1046 Last Stone Weight Easy Python
1047 Remove All Adjacent Duplicates In String Easy Python / Java
1050 Actors and Directors Who Cooperated At Least Three Times Easy MySQL
1051 Height Checker Easy JavaScript
1068 Product Sales Analysis I Easy MySQL
1071 Greatest Common Divisor of Strings Easy Python
1078 Occurrences After Bigram Easy Python
1079 Letter Tile Possibilities Medium Python
1084 Sales Analysis III Easy MySQL
1089 Duplicate Zeros Easy Python
1095 Find in Mountain Array Hard Python
1103 Distribute Candies to People Easy Python
1108 Defanging an IP Address Easy JavaScript / Java / C++
1122 Relative Sort Array Easy Python
1128 Number of Equivalent Domino Pairs Easy Python
1137 N-th Tribonacci Number Easy Python / PHP / Java / C++
1141 User Activity for the Past 30 Days I Easy MySQL
1148 Article Views I Easy MySQL
1154 Day of the Year Easy Python
1160 Find Words That Can Be Formed by Characters Easy Python / Java
1161 Maximum Level Sum of a Binary Tree Medium Python
1175 Prime Arrangements Easy Python
1179 Reformat Department Table Easy MySQL
1189 Maximum Number of Balloons Easy Python
1200 Minimum Absolute Difference Easy Python / Java
1207 Unique Number of Occurrences Easy Python
1208 Get Equal Substrings Within Budget Medium Python
1218 Longest Arithmetic Subsequence of Given Difference Medium Python / C++
1221 Split a String in Balanced Strings Easy JavaScript
1222 Queens That Can Attack the King Medium C++
1227 Airplane Seat Assignment Probability Medium Python *Mathematical Solution [1]
1232 Check If It Is a Straight Line Easy Python / C++
1233 Remove Sub-Folders from the Filesystem Medium Python
1237 Find Positive Integer Solution for a Given Equation Medium Python
1238 Circular Permutation in Binary Representation Medium Python / Java
1250 Check If It Is a Good Array Hard Python
1252 Cells with Odd Values in a Matrix Easy Python / Java
1254 Number of Closed Islands Medium Python / C++
1261 Find Elements in a Contaminated Binary Tree Medium Python / C++
1266 Minimum Time Visiting All Points Easy JavaScript
1275 Find Winner on a Tic Tac Toe Game Easy Python
1276 Number of Burgers with No Waste of Ingredients Medium Python
1281 Subtract the Product and Sum of Digits of an Integer Easy JavaScript / Python
1282 Group the People Given the Group Size They Belong To Medium Python
1287 Element Appearing More Than 25% In Sorted Array Easy Python
1290 Convert Binary Number in a Linked List to Integer.js Easy JavaScript
1295 Find Numbers with Even Number of Digits Easy JavaScript
1299 Replace Elements with Greatest Element on Right Side Easy Python
1302 Deepest Leaves Sum Medium Python Depth-First Search
1304 Find N Unique Integers Sum up to Zero Easy JavaScript
1305 All Elements in Two Binary Search Trees Medium Python / C++
1309 Decrypt String from Alphabet to Integer Mapping Easy JavaScript / Python
1310 XOR Queries of a Subarray Medium Python
1313 Decompress Run-Length Encoded List Easy JavaScript
1315 Sum of Nodes with Even-Valued Grandparent Medium C
1317 Convert Integer to the Sum of Two No-Zero Integers Easy Python
1318 Minimum Flips to Make a OR b Equal to c Medium Python
1323 Maximum 69 Number Easy JavaScript
1324 Print Words Vertically Medium Python
1327 List the Products Ordered in a Period Easy MySQL
1329 Sort the Matrix Diagonally Medium Python
1331 Rank Transform of an Array Easy Python
1332 Remove Palindromic Subsequences Easy Python
1337 The K Weakest Rows in a Matrix Easy Python
1338 Reduce Array Size to The Half Medium Python
1341 Movie Rating Medium MySQL
1342 Number of Steps to Reduce a Number to Zero Easy JavaScript
1344 Angle Between Hands of a Clock Medium C
1346 Check If N and Its Double Exist Easy Python
1347 Minimum Number of Steps to Make Two Strings Anagram Medium Python / Java
1351 Count Negative Numbers in a Sorted Matrix Easy Python / C++
1356 Sort Integers by The Number of 1 Bits Easy Python
1357 Apply Discount Every n Orders Medium Python / Java
1360 Number of Days Between Two Dates Easy Python
1365 How Many Numbers Are Smaller Than the Current Number Easy JavaScript
1370 Increasing Decreasing String Easy Python
1374 Generate a String With Characters That Have Odd Counts Easy Python
1378 Replace Employee ID With The Unique Identifier Easy MySQL
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree Easy Python Depth-First Search, Tree
1380 Lucky Numbers in a Matrix Easy Python
1381 Design a Stack With Increment Operation Medium Python
1385 Find the Distance Value Between Two Arrays Easy Python
1387 Sort Integers by The Power Value Medium Python
1389 Create Target Array in the Given Order Easy JavaScript
1393 Capital Gain/Loss Medium MySQL
1394 Find Lucky Integer in an Array Easy Python
1399 Count Largest Group Easy Python
1402 Reducing Dishes Hard Python
1407 Top Travellers Easy MySQL
1408 String Matching in an Array Easy Python
1409 Queries on a Permutation With Key Medium Python
1410 HTML Entity Parser Medium Python
1413 Minimum Value to Get Positive Step by Step Sum Easy Python
1415 The k-th Lexicographical String of All Happy Strings of Length n Medium C++
1417 Reformat The String Easy Python
1418 Display Table of Food Orders in a Restaurant Medium Python
1422 Maximum Score After Splitting a String Easy Python
1431 Kids With the Greatest Number of Candies Easy JavaScript
1432 Max Difference You Can Get From Changing an Integer Medium Python
1433 Check If a String Can Break Another String Medium Python
1436 Destination City Easy Python
1437 Check If All 1's Are at Least Length K Places Away Easy Python
1441 Build an Array With Stack Operations Medium Python / Java
1446 Consecutive Characters Easy Python
1448 Count Good Nodes in Binary Tree Medium Python / C++
1450 Number of Students Doing Homework at a Given Time Easy Python
1451 Rearrange Words in a Sentence Medium Python
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Easy Python
1456 Maximum Number of Vowels in a Substring of Given Length Medium Python / C++
1460 Make Two Arrays Equal by Reversing Sub-arrays Easy JavaScritp / Python
1461 Check If a String Contains All Binary Codes of Size K Medium Python
1464 Maximum Product of Two Elements in an Array Easy Python
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Medium Python
1470 Shuffle the Array Easy JavaScript / Python / Java / C++
1472 Design Browser History Medium Python
1475 Final Prices With a Special Discount in a Shop Easy Python
1476 Subrectangle Queries Midium Python / C++
1480 Running Sum of 1d Array Easy JavaScript / Python / Java
1484 Group Sold Products By The Date Easy MySQL
1486 XOR Operation in an Array Easy JavaScript
1491 Average Salary Excluding the Minimum and Maximum Salary Easy Python / C
1492 The kth Factor of n Medium Python
1496 Path Crossing Easy Python
1502 Can Make Arithmetic Progression From Sequence Easy Python / C
1507 Reformat Date Easy Python
1512 Number of Good Pairs Easy JavaScript / Java / C++
1517 Find Users With Valid E-Mails Easy MySQL
1518 Water Bottles Easy Python
1523 Count Odd Numbers in an Interval Range Easy Python
1525 Number of Good Ways to Split a String Medium Python / Java
1527 Patients With a Condition Easy MySQL
1528 Shuffle String Easy JavaScript / Java
1534 Count Good Triplets Easy JavaScript
1539 Kth Missing Positive Number Easy Python / C++
1544 Make The String Great Easy Python
1545 Find Kth Bit in Nth Binary String Medium Python
1550 Three Consecutive Odds Easy Python
1551 Minimum Operations to Make Array Equal Medium Python / Java
1556 Thousand Separator Easy Python *Built-in Function Solution [1]
1557 Minimum Number of Vertices to Reach All Nodes Medium C++
1561 Maximum Number of Coins You Can Get Medium Python
1572 Matrix Diagonal Sum Easy Python / C
1576 Replace All ?'s to Avoid Consecutive Repeating Characters Easy Python
1581 Customer Who Visited but Did Not Make Any Transactions Easy MySQL
1582 Special Positions in a Binary Matrix Easy C
1587 Bank Account Summary II Easy MySQL
1588 Sum of All Odd Length Subarrays Easy Python *Mathematical Method [1]
1592 Rearrange Spaces Between Words Easy Python
1598 Crawler Log Folder Easy Python
1603 Design Parking System Easy Python / Python / Java / C++
1605 Find Valid Matrix Given Row and Column Sums Easy Python Greedy Algorithm
1609 Even Odd Tree Medium Python
1614 Maximum Nesting Depth of the Parentheses Easy JavaScript
1624 Largest Substring Between Two Equal Characters Easy Python
1629 Slowest Key Easy Python
1630 Arithmetic Subarrays Medium Python
1636 Sort Array by Increasing Frequency Easy Python
1637 Widest Vertical Area Between Two Points Containing No Points Medium Python
1641 Count Sorted Vowel Strings Medium Python *Methamatical Method [1]
1646 Get Maximum in Generated Array Easy Python
1647 Minimum Deletions to Make Character Frequencies Unique Medium Python
1653 Minimum Deletions to Make String Balanced Medium Python / C
1657 Determine if Two Strings Are Close Medium Python
1662 Check If Two String Arrays are Equivalent Easy JavaScript / Python
1663 Smallest String With A Given Numeric Value Medium Python
1652 Defuse the Bomb Easy Python
1661 Average Time of Process per Machine Easy MySQL
1667 Fix Names in a Table Easy MySQL
1668 Maximum Repeating Substring Easy Python
1669 Merge In Between Linked Lists Medium C++
1672 Richest Customer Wealth Easy JavaScript / Python / Java
1678 Goal Parser Interpretation Easy JavaScript / Python
1679 Max Number of K-Sum Pairs Medium Python
1684 Count the Number of Consistent Strings Easy JavaScript
1685 Sum of Absolute Differences in a Sorted Array Medium C
1688 Count of Matches in Tournament Easy JavaScript
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Medium JavaScript / Python / Java / C++
1693 Daily Leads and Partners Easy MySQL
1694 Reformat Phone Number Easy Python
1700 Number of Students Unable to Eat Lunch Easy Python
1701 Average Waiting Time Medium Python
1704 Determine if String Halves Are Alike Easy Python
1710 Maximum Units on a Truck Easy Python
1720 Decode XORed Array Easy JavaScript
1721 Swapping Nodes in a Linked List Medium Python
1725 Number Of Rectangles That Can Form The Largest Square Easy Python
1726 Tuple with Same Product Medium Python
1729 Find Followers Count Easy MySQL
1732 Find the Highest Altitude Easy JavaScript
1736 Latest Time by Replacing Hidden Digits Easy Python
1741 Find Total Time Spent by Each Employee Easy MySQL
1742 Maximum Number of Balls in a Box Easy Python
1748 Sum of Unique Elements Easy Python
1752 Check if Array Is Sorted and Rotated Easy Python / C
1757 Recyclable and Low Fat Products Easy MySQL
1758 Minimum Changes To Make Alternating Binary String Easy Python
1768 Merge Strings Alternately Easy Python *Built-in Function Solution [1]
1769 Minimum Number of Operations to Move All Balls to Each Box Medium Python
1773 Count Items Matching a Rule Easy JavaScript
1779 Find Nearest Point That Has the Same X or Y Coordinate Easy Python
1780 Check if Number is a Sum of Powers of Three Medium Python
1784 Check if Binary String Has at Most One Segment of Ones Easy Python
1785 Minimum Elements to Add to Form a Given Sum Medium Python
1790 Check if One String Swap Can Make Strings Equal Easy Python / C
1791 Find Center of Star Graph Easy Python
1793 Maximum Score of a Good Subarray Hard C++ / Python
1795 Rearrange Products Table Easy MySQL
1796 Second Largest Digit in a String Easy Python
1800 Maximum Ascending Subarray Sum Easy C++ / C
1805 Number of Different Integers in a String Easy JavaScript
1806 Minimum Number of Operations to Reinitialize a Permutation Medium Python
1807 Evaluate the Bracket Pairs of a String Medium Python
1812 Determine Color of a Chessboard Square Easy Python
1816 Truncate Sentence Easy JavaScript
1817 Finding the Users Active Minutes Medium Python
1822 Sign of the Product of an Array Easy Python / C
1823 Find the Winner of the Circular Game Medium C
1827 Minimum Operations to Make the Array Increasing Easy JavaScript
1828 Queries on Number of Points Inside a Circle Medium Python / Java
1832 Check if the Sentence Is Pangram Easy JavaScript
1833 Maximum Ice Cream Bars Medium Python / Java
1837 Sum of Digits in Base K Easy JavaScript
1839 Longest Substring Of All Vowels in Order Medium Python
1844 Replace All Digits with Characters Easy JavaScript
1848 Minimum Distance to the Target Element Easy Python
1854 Maximum Population Year Easy Python
1855 Maximum Distance Between a Pair of Values Medium Python
1859 Sorting the Sentence Easy JavaScript
1861 Rotating the Box Medium Python
1863 Sum of All Subset XOR Totals Easy Python
1869 Longer Contiguous Segments of Ones than Zeros Easy Python
1873 Calculate Special Bonus Easy MySQL
1876 Substrings of Size Three with Distinct Characters Easy Python / Java
1877 Minimize Maximum Pair Sum in Array Medium Python
1880 Check if Word Equals Summation of Two Words Easy Python
1884 Egg Drop With 2 Eggs and N Floors Medium Python / Java
1886 Determine Whether Matrix Can Be Obtained By Rotation Easy Python
1890 The Latest Login in 2020 Easy MySQL
1893 Check if All the Integers in a Range Are Covered Easy Python
1894 Find the Student that Will Replace the Chalk Medium C
1903 Largest Odd Number in String Easy Python
1909 Remove One Element to Make the Array Strictly Increasing Easy C
1910 Remove All Occurrences of a Substring Medium Java / Python
1913 Maximum Product Difference Between Two Pairs Easy JavaScript
1920 Build Array from Permutation Easy JavaScript / PHP / Java / C++
1925 Concatenation of Array Easy JavaScript / Java
1929 Concatenation of Array Easy JavaScript / Java / C++
1935 Maximum Number of Words You Can Type Easy Python
1941 Check if All Characters Have Equal Number of Occurrences Easy JavaScript
1945 Sum of Digits of String After Convert Easy Python
1952 Three Divisors Easy Python *Mathematical Method [1]
1961 Check If String Is a Prefix of Array Easy Python
1963 Minimum Number of Swaps to Make the String Balanced Medium Python / Java
1965 Employees With Missing Information Easy MySQL
1967 Number of Strings That Appear as Substrings in Word Easy JavaScript
1974 Minimum Time to Type Word Using Special Typewriter Easy Python / Java
1979 Find Greatest Common Divisor of Array Easy Python
1984 Minimum Difference Between Highest and Lowest of K Scores Easy Python
2000 Reverse Prefix of Word Easy Python
2006 Count Number of Pairs With Absolute Difference K Easy JavaScript
2011 Final Value of Variable After Performing Operations Easy JavaScript / Java / C++
2022 Convert 1D Array Into 2D Array Easy Python
2023 Number of Pairs of Strings With Concatenation Equal to Target Medium Python
2032 Two Out of Three Easy Python
2037 Minimum Number of Moves to Seat Everyone Easy Python
2042 Check if Numbers Are Ascending in a Sentence Easy Python
2047 Number of Valid Words in a Sentence Easy Python
2053 2053. Kth Distinct String in an Array Easy Python
2057 Smallest Index With Equal Value Easy Python
2078 Two Furthest Houses With Different Colors Easy Python / Java
2079 Watering Plants Medium Python
2085 Count Common Words With One Occurrence Easy Python
2087 Minimum Cost Homecoming of a Robot in a Grid Medium Python
2089 Find Target Indices After Sorting Array Easy JavaScript
2091 Removing Minimum and Maximum From Array Medium Python
2094 Finding 3-Digit Even Numbers Easy Python
2099 Find Subsequence of Length K With the Largest Sum Easy Python
2102 Sequentially Ordinal Rank Tracker Hard Python
2103 Rings and Rods Easy JavaScript
2108 Find First Palindromic String in the Array Easy JavaScript
2109 Adding Spaces to a String Medium Python
2114 Maximum Number of Words Found in Sentences Easy JavaScript / Java
2119 A Number After a Double Reversal Easy JavaScript
2120 Execution of All Suffix Instructions Staying in a Grid Medium C++
2124 Check if All A's Appears Before All B's Easy Python
2125 Number of Laser Beams in a Bank Medium Python
2126 Destroying Asteroids Medium Python /Java
2129 Capitalize the Title Easy Python
2133 Check if Every Row and Column Contains All Numbers Easy Python
2138 Divide a String Into Groups of Size k Easy Python
2144 Minimum Cost of Buying Candies With Discount Easy Python / C++
2149 Rearrange Array Elements by Sign Medium Python
2154 Keep Multiplying Found Values by Two Easy Python
2160 Minimum Sum of Four Digit Number After Splitting Digits Easy JavaScript
2161 Partition Array According to Given Pivot Medium Python / C++
2164 Partition Array According to Given Pivot Easy Python
2165 Smallest Value of the Rearranged Number Medium Python
2169 Sort Even and Odd Indices Independently Easy Python
2176 Count Equal and Divisible Pairs in an Array Easy JavaScript
2177 Find Three Consecutive Integers That Sum to a Given Number Medium Python / Rust
2180 Count Integers With Even Digit Sum Easy Python
2181 Merge Nodes in Between Zeros Medium Python
2185 Counting Words With a Given Prefix Easy JavaScript / Python
2190 Most Frequent Number Following Key In an Array Easy Python
2191 Sort the Jumbled Numbers Medium Python
2194 Cells in a Range on an Excel Sheet Easy JavaScript
2195 Append K Integers With Minimal Sum Medium Python
2200 Find All K-Distant Indices in an Array Easy Python
2206 Divide Array Into Equal Pairs Easy Python
2210 Count Hills and Valleys in an Array Easy Python
2215 Find the Difference of Two Arrays Easy Python
2216 Minimum Deletions to Make Array Beautiful Medium Python
2220 Minimum Bit Flips to Convert Number Easy JavaScript
2221 Find Triangular Sum of an Array Medium Python / Java
2224 Minimum Number of Operations to Convert Time Easy Python
2225 Find Players With Zero or One Losses Medium Python
2231 Largest Number After Digit Swaps by Parity Easy Python
2235 Add Two Integers Easy JavaScript / PHP / Java / Python / C++
2236 Root Equals Sum of Children Easy JavaScript
2239 Find Closest Number to Zero Easy Python
2240 Number of Ways to Buy Pens and Pencils Medium Python
2241 Design an ATM Machine Medium Python
2243 Calculate Digit Sum of a String Easy Python
2244 Minimum Rounds to Complete All Tasks Medium Python
2248 Intersection of Multiple Arrays Easy Python
2255 Count Prefixes of a Given String Easy Python / PHP
2259 Remove Digit From Number to Maximize Result Easy Python
2264 Largest 3-Same-Digit Number in String Easy JavaScript / Python
2265 Count Nodes Equal to Average of Subtree Medium C
2269 Find the K-Beauty of a Number Easy Python / C++
2270 Number of Ways to Split Array Medium Python
2273 Find Resultant Array After Removing Anagrams Easy Python
2274 Maximum Consecutive Floors Without Special Floors Medium Python
2278 Percentage of Letter in String Easy Python
2283 Check if Number Has Equal Digit Count and Digit Value Easy Python
2284 Sender With Largest Word Count Medium Python
2287 Rearrange Characters to Make Target String Easy Python
2288 Apply Discount to Prices Medium Python
2293 Min Max Game Easy Python
2294 Partition Array Such That Maximum Difference Is K Medium Python
2295 Replace Elements in an Array Medium Python
2299 Strong Password Checker II Easy Python
2300 Successful Pairs of Spells and Potions Medium C++
2303 Calculate Amount Paid in Taxes Easy Python
2309 Greatest English Letter in Upper and Lower Case Easy Python / Java
2315 Count Asterisks Easy Python
2319 Check if Matrix Is X-Matrix Easy Python
2325 Decode the Message Easy Python
2331 Evaluate Boolean Binary Tree Easy Python / Java
2336 Smallest Number in Infinite Set Medium Python
2341 Maximum Number of Pairs in Array Easy Python
2342 Max Sum of a Pair With Equal Sum of Digits Medium Python
2343 Query Kth Smallest Trimmed Number Medium Python
2348 Number of Zero-Filled Subarrays Medium Python
2351 First Letter to Appear Twice Easy Python
2352 Equal Row and Column Pairs Medium Python
2357 Make Array Zero by Subtracting Equal Amounts Easy Python
2363 Merge Similar Items Easy Python
2367 Number of Arithmetic Triplets Easy Python
2373 Largest Local Values in a Matrix Easy Python
2374 Node With Highest Edge Score Medium Python
2379 Minimum Recolors to Get K Consecutive Black Blocks Easy Python
2384 Largest Palindromic Number Medium Python
2389 Longest Subsequence With Limited Sum Easy C / Python
2390 Removing Stars From a String Medium Python / Java
2391 Minimum Amount of Time to Collect Garbage Medium Python / Java
2396 Strictly Palindromic Number Medium Python / C++
2399 Check Distances Between Same Letters Easy Python / Java
2404 Most Frequent Even Element Easy Python
2405 Optimal Partition of String Medium Python / Java / C++
2410 Maximum Matching of Players With Trainers Medium Python / C
2413 Smallest Even Multiple Easy Python / Java
2418 Sort the People Easy Python
2425 Bitwise XOR of All Pairings Medium C
2427 Number of Common Factors Easy Java
2428 Maximum Sum of an Hourglass Medium C++
2429 Minimize XOR Medium C
2433 Find The Original Array of Prefix Xor Medium Python
2442 Count Number of Distinct Integers After Reverse Operations Medium Python / C++
2451 Odd String Difference Easy Python
2455 Average Value of Even Numbers That Are Divisible by Three Easy Python
2456 Most Popular Video Creator Medium Python
2469 Convert the Temperature Easy Python / Java
2475 Number of Unequal Triplets in Array Easy Python / Java
2482 Difference Between Ones and Zeros in Row and Column Medium Python
2483 Minimum Penalty for a Shop Medium Python
2485 Find the Pivot Integer Easy Java
2491 Divide Players Into Teams of Equal Skill Medium Python
2500 Delete Greatest Value in Each Row Easy Python
2506 Count Pairs Of Similar Strings Easy Python
2511 Maximum Enemy Forts That Can Be Captured Easy Python
2515 Maximum Enemy Forts That Can Be Captured Easy Python
2520 Maximum Enemy Forts That Can Be Captured Easy Python
2521 Distinct Prime Factors of Product of Array Medium C
2522 Partition String Into Substrings With Values at Most K Medium Python
2525 Count the Digits That Divide a Number Easy Python
2527 Find Xor-Beauty of Array Easy Python
2529 Maximum Count of Positive Integer and Negative Integer Easy Python
2535 Difference Between Element Sum and Digit Sum of an Array Easy Java / Python
2540 Minimum Common Value Easy Python
2544 Alternating Digit Sum Easy Python
2545 Sort the Students by Their Kth Score Medium C++ / Python
2574 Left and Right Sum Differences Easy C++
2579 Count Total Number of Colored Cells Medium C
2582 Pass the Pillow Easy Python
2586 Count the Number of Vowel Strings in Range Easy C++
2591 Distribute Money to Maximum Children Easy Python / C++
2592 Maximize Greatness of an Array Medium C++
2595 Number of Even and Odd Bits Easy C++
2600 K Items With the Maximum Sum Easy C++
2605 Form Smallest Number From Two Digit Arrays Easy Python
2609 Find the Longest Balanced Substring of a Binary String Easy Python / C
2610 Convert an Array Into a 2D Array With Conditions Medium Python
2611 Mice and Cheese Medium Python
2618 Check if Object Instance of Class Medium JavaScript
2619 Array Prototype Last Easy JavaScript
2620 Counter Easy JavaScript / TypeScript
2621 Sleep Easy JavaScript / TypeScript
2626 Array Reduce Transformation Easy JavaScript / TypeScript
2629 Function Composition Easy JavaScript
2631 Group By Medium JavaScript
2633 Convert Object to JSON String Medium JavaScript
2634 Filter Elements from Array Easy JavaScript
2635 Apply Transform Over Each Element in Array Easy JavaScript
2637 Promise Time Limit Easy JavaScript
2644 Find the Maximum Divisibility Score Easy Python
2645 Minimum Additions to Make Valid String Medium Python / C
2648 Generate Fibonacci Sequence Easy JavaScript
2651 Calculate Delayed Arrival Time Easy C
2652 Sum Multiples Easy C
2656 Maximum Sum With Exactly K Elements Easy C
2657 Find the Prefix Common Array of Two Arrays Medium Python
2660 Determine the Winner of a Bowling Game Easy Python
2665 Counter II Easy JavaScript
2666 Allow One Function Call Easy JavaScript
2667 Create Hello World Function Easy JavaScript
2677 Chunk Array Easy JavaScript
2695 Array Wrapper Easy JavaScript
2703 Return Length of Arguments Passed Easy JavaScript
2704 To Be Or Not To Be Easy JavaScript
2706 Buy Two Chocolates Easy Python
2710 Remove Trailing Zeros From a String Easy Python
2716 Minimize String Length Easy C
2723 Add Two Promises Easy JavaScript
2724 Sort By Easy JavaScript
2726 Calculator with Method Chaining Easy JavaScript
2727 Is Object Empty Easy JavaScript
2733 Neither Minimum nor Maximum Easy C
2739 Total Distance Traveled Easy C
2739 Total Distance Traveled Easy C
2763 Sum of Imbalance Numbers of All Subarrays Hard Python / C++
2769 Find the Maximum Achievable Number Easy C
2778 Sum of Squares of Special Elements Easy C
2785 Sort Vowels in a String Medium C
2788 Split Strings by Separator Easy Python
2798 Number of Employees Who Met the Target Easy C
2806 Account Balance After Rounded Purchase Easy C++
2807 Insert Greatest Common Divisors in Linked List Medium C
2810 Faulty Keyboard Easy Python
2824 Count Pairs Whose Sum is Less than Target Easy Python
2833 Furthest Point From Origin Easy Python
2859 Sum of Values at Indices With K Set Bits Easy C
2870 Minimum Number of Operations to Make Array Empty Medium Python
2879 Display the First Three Rows Easy Python
2882 Drop Duplicate Rows Easy Python
2884 Modify Columns Easy Python
2886 Change Data Type Easy Python
2888 Reshape Data: Concatenate Easy Python
2890 Reshape Data: Melt Easy Python
2894 Divisible and Non-divisible Sums Difference Easy C
2951 Find the Peaks Easy C
2974 Minimum Number Game Easy C
2997 Minimum Number of Operations to Make Array XOR Equal to K Medium C
3065 Minimum Operations to Exceed Threshold Value I Easy C
3084 Count Substrings Starting and Ending with Given Character Medium C
3105 Longest Strictly Increasing or Strictly Decreasing Subarray Easy Python / C
3110 Score of a String Easy C
3146 Permutation Difference between Two Strings Easy C
3151 Special Array I Easy C
3160 Find the Number of Distinct Colors Among the Balls Medium Python
3162 Find the Number of Good Pairs I Easy C
3174 Clear Digits Easy Python / C
3190 Find Minimum Operations to Make All Elements Divisible by Three Easy C
3211 Generate Binary Strings Without Adjacent Zeros Medium Python
3233 Find the Count of Numbers Which Are Not Special Medium C
3436 Find Valid Emails Easy MySQL

About

📚This repository consists of some LeetCode problem solutions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published