Skip to content

Files

Latest commit

0c479f6 · Jan 25, 2025

History

History

Easy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Problems Solved - 228

# Problem Name Difficulty Solution
1 Two Sum Easy Solution
7 Reverse Integer Easy Solution
9 Palindrome Number Easy Solution
21 Merge Two Sorted Lists Easy Solution
26 Remove Duplicates from Sorted Array Easy Solution
27 Remove Element Easy Solution
28 Implement strStr() Easy Solution
58 Length of Last Word Easy Solution
58 Length of Last Word Easy Solution
66 Plus One Easy Solution
83 Remove Duplicates from Sorted List Easy Solution
88 Merge Sorted Array Easy Solution
100 Same Tree Easy Solution
104 Maximum Depth of Binary Tree Easy Solution
107 Binary Tree Level Order Traversal II Easy Solution
111 Minimum Depth of Binary Tree Easy Solution
112 Path Sum Easy Solution
118 Pascal's Triangle Easy Solution
121 Best Time to Buy and Sell Stock Easy Solution
125 Valid Palindrome Easy Solution
136 Single Number Easy Solution
155 Min Stack Easy Solution
167 Two Sum II - Input array is sorted Easy Solution
169 Majority Element Easy Solution
189 Rotate Array Easy Solution
203 Remove Linked List Elements Easy Solution
205 Isomorphic Strings Easy Solution
217 Contains Duplicate Easy Solution
219 Contains Duplicate II Easy Solution
226 Invert Binary Tree Easy Solution
231 Power of Two Easy Solution
234 Palindrome Linked List Easy Solution
237 Delete Node in a Linked List Easy Solution
242 Valid Anagram Easy Solution
258 Add Digits Easy Solution
263 Ugly Number Easy Solution
268 Missing Number Easy Solution
283 Move Zeroes Easy Solution
292 Nim Game Easy Solution
326 Power of Three Easy Solution
342 Power of Four Easy Solution
344 Reverse String Easy Solution
345 Reverse Vowels of a String Easy Solution
383 Ransom Note Easy Solution
387 First Unique Character in a String Easy Solution
389 Find the Difference Easy Solution
404 Sum of Left Leaves Easy Solution
412 Fizz Buzz Easy Solution
441 Arranging Coins Easy Solution
443 String Compression Easy Solution
461 Hamming Distance Easy Solution
463 Island Perimeter Easy Solution
476 Number Complement Easy Solution
485 Max Consecutive Ones Easy Solution
500 Keyboard Row Easy Solution
504 Base 7 Easy Solution
506 Relative Ranks Easy Solution
520 Detect Capital Easy Solution
541 Reverse String II Easy Solution
551 Student Attendance Record I Easy Solution
557 Reverse Words in a String III Easy Solution
575 Distribute Candies Easy Solution
606 Construct String from Binary Tree Easy Solution
617 Merge Two Binary Trees Easy Solution
628 Maximum Product of Three Numbers Easy Solution
637 Average of Levels in Binary Tree Easy Solution
657 Robot Return to Origin Easy Solution
669 Trim a Binary Search Tree Easy Solution
682 Baseball Game Easy Solution
693 Binary Number with Alternating Bits Easy Solution
697 Degree of an Array Easy Solution
709 To Lower Case Easy Solution
728 Self Dividing Numbers Easy Solution
728 Self Dividing Numbers Easy Solution
771 Jewels and Stones Easy Solution
796 Rotate String Easy Solution
804 Unique Morse Code Words Easy Solution
811 Subdomain Visit Count Easy Solution
819 Most Common Word Easy Solution
821 Shortest Distance to a Character Easy Solution
824 Goat Latin Easy Solution
832 Flipping an Image Easy Solution
852 Peak Index in a Mountain Array Easy Solution
859 Buddy Strings Easy Solution
860 Lemonade Change Easy Solution
867 Transpose Matrix Easy Solution
872 Leaf-Similar Trees Easy Solution
876 Middle of the Linked List Easy Solution
884 Uncommon Words from Two Sentences Easy Solution
888 Fair Candy Swap Easy Solution
896 Monotonic Array Easy Solution
897 Increasing Order Search Tree Easy Solution
905 Sort Array By Parity Easy Solution
908 Smallest Range I Easy Solution
917 Reverse Only Letters Easy Solution
922 Sort Array By Parity II Easy Solution
925 Long Pressed Name Easy Solution
929 Unique Email Addresses Easy Solution
933 Number of Recent Calls Easy Solution
937 Reorder Log Files Easy Solution
941 Valid Mountain Array Easy Solution
942 DI String Match Easy Solution
953 Verifying an Alien Dictionary Easy Solution
961 N-Repeated Element in Size 2N Array Easy Solution
977 Squares of a Sorted Array Easy Solution
985 Sum of Even Numbers After Queries Easy Solution
1010 Pairs of Songs With Total Durations Divisible by 60 Easy Solution
1051 Height Checker Easy Solution
1089 Duplicate Zeros Easy Solution
1103 Distribute Candies to People Easy Solution
1108 Defanging an IP Address Easy Solution
1128 Number of Equivalent Domino Pairs Easy Solution
1137 N-th Tribonacci Number Easy Solution
1207 Unique Number of Occurrences Easy Solution
1221 Split a String in Balanced Strings Easy Solution
1281 Subtract the Product and Sum of Digits of an Integer Easy Solution
1313 Decompress Run-Length Encoded List Easy Solution
1323 Maximum 69 Number Easy Solution
1351 Count Negative Numbers in a Sorted Matrix Easy Solution
1365 How Many Numbers Are Smaller Than the Current Number Easy Solution
1380 Lucky Numbers in a Matrix Easy Solution
1394 Find Lucky Integer in an Array Easy Solution
1431 Kids With the Greatest Number of Candies Easy Solution
1436 Destination City Easy Solution
1464 Maximum Product of Two Elements in an Array Easy Solution
1470 Shuffle the Array Easy Solution
1480 Running Sum of 1d Array Easy Solution
1486 XOR Operation in an Array Easy Solution
1496 Path Crossing Easy Solution
1512 Number of Good Pairs Easy Solution
1572 Matrix Diagonal Sum Easy Solution
1662 Check If Two String Arrays are Equivalent Easy Solution
1672 Richest Customer Wealth Easy Solution
1678 Goal Parser Interpretation Easy Solution
1684 Count the Number of Consistent Strings Easy Solution
1688 Count of Matches in Tournament Easy Solution
1732 Find the Highest Altitude Easy Solution
1748 Sum of Unique Elements Easy Solution
1768 Merge Strings Alternately Easy Solution
1773 Count Items Matching a Rule Easy Solution
1812 Determine Color of a Chessboard Square Easy Solution
1816 Truncate Sentence Easy Solution
1832 Check if the Sentence Is Pangram Easy Solution
1844 Replace All Digits with Characters Easy Solution
1913 Maximum Product Difference Between Two Pairs Easy Solution
1920 Build Array from Permutation Easy Solution
1929 Concatenation of Array Easy Solution
1941 Check if All Characters Have Equal Number of Occurrences Easy Solution
2000 Reverse Prefix of Word Easy Solution
2011 Final Value of Variable After Performing Operations Easy Solution
2032 Two Out of Three Easy Solution
2037 Minimum Number of Moves to Seat Everyone Easy Solution
2089 Find Target Indices After Sorting Array Easy Solution
2108 Find First Palindromic String in the Array Easy Solution
2114 Maximum Number of Words Found in Sentences Easy Solution
2119 A Number After a Double Reversal Easy Solution
2129 Capitalize the Title Easy Solution
2154 Keep Multiplying Found Values by Two Easy Solution
2160 Minimum Sum of Four Digit Number After Splitting Digits Easy Solution
2206 Divide Array Into Equal Pairs Easy Solution
2215 Find the Difference of Two Arrays Easy Solution
2220 Minimum Bit Flips to Convert Number Easy Solution
2236 Root Equals Sum of Children Easy Solution
2239 Find Closest Number to Zero Easy Solution
2278 Percentage of Letter in String Easy Solution
2315 Count Asterisks Easy Solution
2325 Decode the Message Easy Solution
2351 First Letter to Appear Twice Easy Solution
2363 Merge Similar Items Easy Solution
2413 Smallest Even Multiple Easy Solution
2418 Sort the People Easy Solution
2441 Largest Positive Integer That Exists With Its Negative Easy Solution
2469 Convert the Temperature Easy Solution
2500 Delete Greatest Value in Each Row Easy Solution
2535 Difference Between Element Sum and Digit Sum of an Array Easy Solution
2574 Left and Right Sum Differences Easy Solution
2619 Array Prototype Last Easy Solution
2620 Counter Easy Solution
2621 Sleep Easy Solution
2626 Array Reduce Transformation Easy Solution
2629 Function Composition Easy Solution
2634 Filter Elements from Array Easy Solution
2635 Apply Transform Over Each Element in Array Easy Solution
2648 Generate Fibonacci Sequence Easy Solution
2652 Sum Multiples Easy Solution
2665 Counter II Easy Solution
2666 Allow One Function Call Easy Solution
2667 Create Hello World Function Easy Solution
2677 Chunk Array Easy Solution
2678 Number of Senior Citizens Easy Solution
2695 Array Wrapper Easy Solution
2703 Return Length of Arguments Passed Easy Solution
2704 To Be Or Not To Be Easy Solution
2710 Remove Trailing Zeros From a String Easy Solution
2715 Timeout Cancellation Easy Solution
2723 Add Two Promises Easy Solution
2724 Sort By Easy Solution
2725 Interval Cancellation Easy Solution
2726 Calculator with Method Chaining Easy Solution
2727 Is Object Empty Easy Solution
2729 Check if The Number is Fascinating Easy Solution
2744 Find Maximum Number of String Pairs Easy Solution
2788 Split Strings by Separator Easy Solution
2798 Number of Employees Who Met the Target Easy Solution
2810 Faulty Keyboard Easy Solution
2828 Check if a String Is an Acronym of Words Easy Solution
2894 Divisible and Non-divisible Sums Difference Easy Solution
2923 Find Champion I Easy Solution
2937 Make Three Strings Equal Easy Solution
2942 Find Words Containing Character Easy Solution
2956 Find Common Elements Between Two Arrays Easy Solution
2960 Count Tested Devices After Test Operations Easy Solution
2965 Find Missing and Repeated Values Easy Solution
3005 Count Elements With Maximum Frequency Easy Solution
3019 Number of Changing Keys Easy Solution
3046 Split the Array Easy Solution
3065 Minimum Operations to Exceed Threshold Value I Easy Solution
3079 Find the Sum of Encrypted Integers Easy Solution
3083 Existence of a Substring in a String and Its Reverse Easy Solution
3099 Harshad Number Easy Solution
3110 Score of a String Easy Solution
3114 Latest Time You Can Obtain After Replacing Characters Easy Solution
3120 Count the Number of Special Characters I Easy Solution
3131 Find the Integer Added to Array I Easy Solution
3146 Permutation Difference between Two Strings Easy Solution
3151 Special Array I Easy Solution
3158 Find the XOR of Numbers Which Appear Twice Easy Solution
3168 Minimum Number of Chairs in a Waiting Room Easy Solution