X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Easy LeetCode Java Solutions

S.no Coding Problem
1 1-bit and 2-bit Characters
2 A Number After a Double Reversal
3 Add Binary
4 Add Digits
5 Add Strings
6 Add to Array-Form of Integer
7 Alternating Digit Sum
8 Apply Operations to an Array
9 Armstrong Number
10 Arranging Coins
11 Array Partition I
12 Array Transformation
13 Assign Cookies
14 Available Captures for Rook
15 Average Salary Excluding the Minimum and Maximum Salary
16 Average Value of Even Numbers That Are Divisible by Three
17 Average of Levels in Binary Tree
18 Backspace String Compare
19 Balanced Binary Tree
20 Base 7
21 Baseball Game
22 Best Poker Hand
23 Best Time to Buy and Sell Stock
24 Binary Gap
25 Binary Number with Alternating Bits
26 Binary Prefix Divisible By 5
27 Binary Search
28 Binary Tree Inorder Traversal
29 Binary Tree Level Order Traversal II
30 Binary Tree Paths
31 Binary Tree Postorder Traversal
32 Binary Tree Tilt
33 Binary Watch
34 Buddy Strings
35 Build Array from Permutation
36 Build an Array With Stack Operations
37 Bulls and Cows
38 Calculate Amount Paid in Taxes
39 Calculate Delayed Arrival Time
40 Calculate Digit Sum of a String
41 Calculate Money in Leetcode Bank
42 Can Make Arithmetic Progression From Sequence
43 Can Place Flowers
44 Capitalize the Title
45 Categorize Box According to Criteria
46 Cells in a Range on an Excel Sheet
47 Cells with Odd Values in a Matrix
48 Check Array Formation Through Concatenation
49 Check Distances Between Same Letters
50 Check If It Is a Straight Line
51 Check If N and Its Double Exist
52 Check If String Is a Prefix of Array
53 Check If Two String Arrays are Equivalent
54 Check If a Number Is Majority Element in a Sorted Array
55 Check If a Word Occurs As a Prefix of Any Word in a Sentence
56 Check Whether Two Strings are Almost Equivalent
57 Check if All A's Appears Before All B's
58 Check if All Characters Have Equal Number of Occurrences
59 Check if All the Integers in a Range Are Covered
60 Check if Array Is Sorted and Rotated
61 Check if Binary String Has at Most One Segment of Ones
62 Check if Every Row and Column Contains All Numbers
63 Check if Matrix Is X-Matrix
64 Check if Number Has Equal Digit Count and Digit Value
65 Check if Numbers Are Ascending in a Sentence
66 Check if One String Swap Can Make Strings Equal
67 Check if String Is Decomposable Into Value-Equal Substrings
68 Check if Word Equals Summation of Two Words
69 Check if an Array Is Consecutive
70 Check if the Sentence Is Pangram
71 Circular Sentence
72 Climbing Stairs
73 Closest Binary Search Tree Value
74 Compare Strings by Frequency of the Smallest Character
75 Complement of Base 10 Integer
76 Concatenation of Array
77 Confusing Number
78 Consecutive Characters
79 Construct String from Binary Tree
80 Construct the rectangle
81 Contains Duplicate II
82 Contains Duplicate
83 Convert 1D Array Into 2D Array
84 Convert BST to Greater Tree
85 Convert Binary Number in a Linked List to Integer
86 Convert Sorted Array To Binary Search Tree
87 Convert a number to hexadecimal
88 Convert the Temperature
89 Count Asterisks
90 Count Binary Substrings
91 Count Common Words With One Occurrence
92 Count Distinct Numbers on Board
93 Count Elements With Strictly Smaller and Greater Elements
94 Count Equal and Divisible Pairs in an Array
95 Count Good Triplets
96 Count Hills and Valleys in an Array
97 Count Integers With Even Digit Sum
98 Count Items Matching a Rule
99 Count Largest Group
100 Count Negative Numbers in a Sorted Matrix
101 Count Number of Pairs With Absolute Difference K
102 Count Odd Numbers in an Interval Range
103 Count Operations to Obtain Zero
104 Count Pairs Of Similar Strings
105 Count Prefixes of a Given String
106 Count Primes
107 Count Special Quadruplets
108 Count Square Sum Triples
109 Count Substrings with Only One Distinct Letter
110 Count Vowel Substrings of a String
111 Count of Matches in Tournament
112 Count the Digits That Divide a Number
113 Count the Number of Consistent Strings
114 Count the Number of Vowel Strings in Range
115 Counting Bits
116 Counting Elements
117 Counting Words With a Given Prefix
118 Cousins in Binary Tree
119 Crawler Log Folder
120 Create Target Array in the Given Order
121 DI String Match
122 Day of the Week
123 Day of the Year
124 Decode XORed Array
125 Decode the Message
126 Decompress Run-Length Encoded List
127 Decrypt String from Alphabet to Integer Mapping
128 Defanging an IP Address
129 Defuse the Bomb
130 Degree of an array
131 Delete Characters to Make Fancy String
132 Delete Columns to Make Sorted
133 Delete N Nodes After M Nodes of a Linked List
134 Delete Node in a Linked List
135 Design Compressed String Iterator
136 Design HashMap
137 Design HashSet
138 Design Linked List
139 Design Parking System
140 Design an Ordered Stream
141 Design an Ordered System
142 Destination City
143 Detect Capital
144 Detect Pattern of Length M Repeated K or More Times
145 Determine Color of a Chessboard Square
146 Determine Whether Matrix Can Be Obtained By Rotation
147 Determine if String Halves Are Alike
148 Determine if Two Events Have Conflict
149 Diameter of Binary Tree
150 Diet Plan Performance
151 Difference Between Element Sum and Digit Sum of an Array
152 Distance Between Bus Stops
153 Distribute Candies to People
154 Distribute Candies
155 Distribute Money to Maximum Children
156 Divide Array Into Equal Pairs
157 Divide a String Into Groups of Size k
158 Divisor Game
159 Duplicate Zeros
160 Element Appearing More Than 25% In Sorted Array
161 Employee Importance
162 Evaluate Boolean Binary Tree
163 Excel Sheet Column Number
164 Excel Sheet Column Title
165 Factorial Trailing Zeroes
166 Fair Candy Swap
167 Fibonacci Number
168 Final Prices With a Special Discount in a Shop
169 Final Value of Variable After Performing Operations
170 Find All K-Distant Indices in an Array
171 Find All Numbers Disappeared in an Array
172 Find All the Lonely Nodes
173 Find Anagram Mappings
174 Find Closest Number to Zero
175 Find Common Characters
176 Find First Palindromic String in the Array
177 Find Greatest Common Divisor of Array
178 Find Lucky Integer in an Array
179 Find Mode in Binary Search Tree
180 Find N Unique Integers Sum up to Zero
181 Find Nearest Point That Has the Same X or Y Coordinate
182 Find Numbers with Even Number of Digits
183 Find Pivot Index
184 Find Positive Integer Solution for a Given Equation
185 Find Resultant Array After Removing Anagrams
186 Find Smallest Letter Greater Than Target
187 Find Subarrays With Equal Sum
188 Find Target Indices After Sorting Array
189 Find Winner on a Tic Tac Toe Game
190 Find Words That Can Be Formed by Characters
191 Find if Path Exists in Graph
192 Find the Array Concatenation Value
193 Find the Difference of Two Arrays
194 Find the Distance Value Between Two Arrays
195 Find the Highest Altitude
196 Find the K-Beauty of a Number
197 Find the Longest Balanced Substring of a Binary String
198 Find the Middle Index in Array
199 Find the Town Judge
200 Find the Width of Columns of a Grid
201 Find the difference
202 Finding 3-Digit Even Numbers
203 First Bad Version
204 First Letter to Appear Twice
205 First Unique Character in a String
206 Fixed Point
207 Fizz Buzz
208 Flip Game
209 Flipping an Image
210 Flood Fill
211 Flower Planting With No Adjacent
212 Form Smallest Number From Two Digit Arrays
213 Generate a String With Characters That Have Odd Counts
214 Get Maximum in Generated Array
215 Goal Parser Interpretation
216 Goat Latin
217 Greatest Common Divisor of Strings
218 Greatest English Letter in Upper and Lower Case
219 Groups of Special-Equivalent Strings
220 Guess Number Higher or Lower
221 Hamming Distance
222 Happy Number
223 Heaters
224 Height Checker
225 Hexspeak
226 High Five
227 How Many Apples Can You Put into the Basket
228 How Many Numbers Are Smaller Than the Current Number
229 Image Smoother
230 Implement Queue using Stacks
231 Implement Stack using Queues
232 Implement strStr
233 Increasing Decreasing String
234 Increasing Order Search Tree
235 Index Pairs of a String
236 Intersection of Multiple Arrays
237 Intersection of Three Sorted Arrays
238 Intersection of Two Arrays II
239 Intersection of Two Arrays
240 Intersection of two Linked Lists
241 Invert Binary Tree
242 Is Subsequence
243 Island Perimeter
244 Isomorphic Strings
245 Jewels and Stones
246 Judge Route Cycle
247 K Items With the Maximum Sum
248 K-diff Pairs in an Array
249 Keep Multiplying Found Values by Two
250 Keyboard Row
251 Kids With the Greatest Number of Candies
252 Kth Distinct String in an Array
253 Kth Largest Element in a Stream
254 Kth Missing Positive Number
255 Largest 3-Same-Digit Number in String
256 Largest Local Values in a Matrix
257 Largest Number After Digit Swaps by Parity
258 Largest Number At Least Twice of Others
259 Largest Odd Number in String
260 Largest Perimeter Triangle
261 Largest Positive Integer That Exists With Its Negative
262 Largest Substring Between Two Equal Characters
263 Largest Triangle Area
264 Largest Unique Number
265 Last Stone Weight
266 Latest Time by Replacing Hidden Digits
267 Leaf-Similar Trees
268 Left and Right Sum Differences
269 Lemonade Change
270 Length of last word
271 Letter Case Permutation
272 License Key Formatting
273 Linked List Cycle
274 Logger Rate Limiter
275 Long Pressed Name
276 Longer Contiguous Segments of Ones than Zeros
277 Longest Common Prefix
278 Longest Continuous Increasing Subsequence
279 Longest Harmonious Subsequence
280 Longest Nice Substring
281 Longest Palindrome
282 Longest Subsequence With Limited Sum
283 Longest Uncommon Subsequence
284 Longest Univalue Path
285 Longest Word in Dictionary
286 Lowest Common Ancestor of a Binary Search Tree
287 Lucky Numbers in a Matrix
288 Magic Squares In Grid
289 Majority Element
290 Make Array Zero by Subtracting Equal Amounts
291 Make The String Great
292 Matrix Cells in Distance Order
293 Matrix Diagonal Sum
294 Max Consecutive Ones
295 Maximize Sum Of Array After K Negations
296 Maximum 69 Number
297 Maximum Ascending Subarray Sum
298 Maximum Average Subarray I
299 Maximum Count of Positive Integer and Negative Integer
300 Maximum Depth of N-ary Tree
301 Maximum Difference Between Increasing Elements
302 Maximum Difference by Remapping a Digit
303 Maximum Distance in Arrays
304 Maximum Enemy Forts That Can Be Captured
305 Maximum Nesting Depth of the Parentheses
306 Maximum Number of Balloons
307 Maximum Number of Balls in a Box
308 Maximum Number of Pairs in Array
309 Maximum Number of Words Found in Sentences
310 Maximum Number of Words You Can Type
311 Maximum Population Year
312 Maximum Product Difference Between Two Pairs
313 Maximum Product of Three Numbers
314 Maximum Product of Two Elements in an Array
315 Maximum Repeating Substring
316 Maximum Subarray Sum I
317 Maximum Sum With Exactly K Elements
318 Maximum Units on a Truck
319 Maximum Value of a String in an Array
320 Maximum depth of Binary tree
321 Mean of Array After Removing Some Elements
322 Meeting Rooms
323 Merge Similar Items
324 Merge Sorted Array
325 Merge Strings Alternately
326 Merge Two 2D Arrays by Summing Values
327 Merge Two Sorted Lists
328 Merge two binary trees
329 Middle of the linked list
330 Min Cost Climbing Stairs
331 Min Max Game
332 Minimum Absolute Difference in BST
333 Minimum Absolute Difference
334 Minimum Amount of Time to Fill Cups
335 Minimum Bit Flips to Convert Number
336 Minimum Changes To Make Alternating Binary String
337 Minimum Common Value
338 Minimum Cost of Buying Candies With Discount
339 Minimum Cost to Move Chips to The Same Position
340 Minimum Cuts to Divide a Circle
341 Minimum Depth of a Binary Tree
342 Minimum Difference Between Highest and Lowest of K Scores
343 Minimum Distance Between BST Nodes
344 Minimum Distance to the Target Element
345 Minimum Hours of Training to Win a Competition
346 Minimum Index Sum of Two Lists
347 Minimum Moves to Convert String
348 Minimum Moves to Equal an Array Element
349 Minimum Number of Moves to Seat Everyone
350 Minimum Number of Operations to Convert Time
351 Minimum Operations to Make the Array Increasing
352 Minimum Recolors to Get K Consecutive Black Blocks
353 Minimum Subsequence in Non-Increasing Order
354 Minimum Sum of Four Digit Number After Splitting Digits
355 Minimum Time Visiting All Points
356 Minimum Time to Type Word Using Special Typewriter
357 Minimum Value to Get Positive Step by Step Sum
358 Minimum_index_sum_of_two_lists
359 Missing Number In Arithmetic Progression
360 Missing Number
361 Missing Ranges
362 Monotonic Array
363 Most Common Word
364 Most Frequent Even Element
365 Most Frequent Number Following Key In an Array
366 Most Visited Sector in a Circular Track
367 Move Zeroes
368 Moving Average from Data Stream
369 N-Repeated Element in Size 2N Array
370 N-ary Tree Postorder Traversal
371 N-ary Tree Preorder Traversal
372 N-th Tribonacci Number
373 Nested List Weight Sum
374 Next Greater Element I
375 Next Greater Element
376 Nim Game
377 Number Complement
378 Number Of Rectangles That Can Form The Largest Square
379 Number of 1 bits
380 Number of Arithmetic Triplets
381 Number of Boomerangs
382 Number of Common Factors
383 Number of Days Between Two Dates
384 Number of Days in a Month
385 Number of Different Integers in a String
386 Number of Distinct Averages
387 Number of Equivalent Domino Pairs
388 Number of Good Pairs
389 Number of Lines To Write String
390 Number of Recent Calls
391 Number of Steps to Reduce a Number to Zero
392 Number of Strings That Appear as Substrings in Word
393 Number of Students Doing Homework at a Given Time
394 Number of Students Unable to Eat Lunch
395 Number of Unequal Triplets in Array
396 Number of Valid Words in a Sentence
397 Number of segments in a String
398 Occurrences After Bigram
399 Odd String Difference
400 Paint Fence
401 Paint House
402 Pairs of Songs With Total Durations Divisible by 60
403 Palindrome Linked List
404 Palindrome Number
405 Palindrome Permutation
406 Partition Array Into Three Parts With Equal Sum
407 Pascal's Triangle II
408 Pascal's Triangle
409 Pass the Pillow
410 Path Crossing
411 Path In Zigzag Labelled Binary Tree
412 Path Sum
413 Peak Index in a Mountain Array
414 Percentage of Letter in String
415 Perfect Number
416 Perform String Shifts
417 Plus One
418 Positions of Large Groups
419 Power of Four
420 Power of Three
421 Power of Two
422 Powerful Integers
423 Prime In Diagonal
424 Projection Area of 3D Shapes
425 Range Sum Query Immutable
426 Range Sum of BST
427 Rank Transform of an Array
428 Ransom Note
429 Read N characters Given Read4
430 Rearrange Characters to Make Target String
431 Rearrange Spaces Between Words
432 Rectangle Overlap
433 Redistribute Characters to Make All Strings Equal
434 Reformat Date
435 Reformat Phone Number
436 Reformat The String
437 Relative Sort Array
438 Relative ranks
439 Remove All Adjacent Duplicates In String
440 Remove Digit From Number to Maximize Result
441 Remove Duplicates From Sorted Lists
442 Remove Duplicates from Sorted Array
443 Remove Element
444 Remove Letter To Equalize Frequency
445 Remove Linked List Elements
446 Remove One Element to Make the Array Strictly Increasing
447 Remove Outermost Parentheses
448 Remove Palindromic Subsequences
449 Remove Vowels from a String
450 Repeated String Match
451 Repeated Substring Pattern
452 Replace All ?'s to Avoid Consecutive Repeating Characters
453 Replace All Digits with Characters
454 Replace Elements with Greatest Element on Right Side
455 Reshape the matrix
456 Reverse Bits
457 Reverse Linked List
458 Reverse Only Letters
459 Reverse Prefix of Word
460 Reverse String II
461 Reverse String
462 Reverse Vowels of a String
463 Reverse words in a String III
464 Richest Customer Wealth
465 Rings and Rods
466 Robot Return to Origin
467 Roman to Integer
468 Root Equals Sum of Children
469 Rotate String
470 Row With Maximum Ones
471 Running Sum of 1d Array
472 Same Tree
473 Search Insert Position
474 Search in a Binary Search Tree
475 Second Largest Digit in a String
476 Second Minimum Node in a binary tree
477 Self Dividing Number
478 Sentence Similarity
479 Separate the Digits in an Array
480 Set Mismatch
481 Shortest Completing Word
482 Shortest Distance to Target String in a Circular Array
483 Shortest Distance to a Character
484 Shortest Word Distance
485 Shuffle String
486 Shuffle the Array
487 Sign of the Product of an Array
488 Similar RGB Color
489 Single Number
490 Single-Row Keyboard
491 Slowest Key
492 Smallest Even Multiple
493 Smallest Index With Equal Value
494 Smallest Range I
495 Sort Array By Parity II
496 Sort Array By Parity
497 Sort Array by Increasing Frequency
498 Sort Even and Odd Indices Independently
499 Sort Integers by The Number of 1 Bits
500 Sort the People
501 Sorting the Sentence
502 Special Array With X Elements Greater Than or Equal X
503 Special Positions in a Binary Matrix
504 Split With Minimum Sum
505 Split a String in Balanced Strings
506 SqrtX
507 Squares of a Sorted Array
508 String Matching in an Array
509 String Without AAA or BBB
510 Strobogrammatic Number
511 Strong Password Checker II
512 Student Attendance Record I
513 Submission Detail
514 Substrings of Size Three with Distinct Characters
515 Subtract the Product and Sum of Digits of an Integer
516 Subtree of Another Tree
517 Sum Of Two Integers
518 Sum of All Odd Length Subarrays
519 Sum of Digits in Base K
520 Sum of Digits in the Minimum Number
521 Sum of Digits of String After Convert
522 Sum of Left Leaves
523 Sum of Root To Leaf Binary Numbers
524 Sum of Square Numbers
525 Sum of Unique Elements
526 Summary Ranges
527 Symmetric Tree
528 Take Gifts From the Richest Pile
529 Teemo Attacking
530 Teoplitz Matrix
531 The Employee That Worked on the Longest Task
532 The K Weakest Rows in a Matrix
533 Third Maximum Number
534 Thousand Separator
535 Three Consecutive Odds
536 Three Divisors
537 Time Needed to Buy Tickets
538 To Lower Case
539 Toeplitz Matrix
540 Transpose Matrix
541 Truncate Sentence
542 Two Furthest Houses With Different Colors
543 Two Out of Three
544 Two Sum III - Data Structure Design
545 Two Sum IV - Input is a BST
546 Two Sum Less Than K
547 Two Sum
548 Ugly Number
549 Uncommon Words from Two Sentences
550 Unique Email Addresses
551 Unique Morse Code Words
552 Unique Number of Occurrences
553 Univalued Binary Tree
554 Valid Anagram
555 Valid Boomerang
556 Valid Mountain Array
557 Valid Palindrome II
558 Valid Palindrome
559 Valid Parentheses
560 Valid Perfect Square
561 Valid Word Abbreviation
562 Valid Word Sequence
563 Valid Word Square
564 Verifying an Alien Dictionary
565 Water Bottles
566 Word Pattern
567 X of a Kind in a Deck of Cards
568 XOR Operation in an Array
569 nim_game
570 range_addition_II
571 trailing_zeroes
X Tutup