Employee Bonus
October 31, 2020 · 2 min · 356 words · Samir Paul
Get Highest Answer Rate Question
October 31, 2020 · 2 min · 412 words · Samir Paul
Find Cumulative Salary of an Employee
October 31, 2020 · 4 min · 762 words · Samir Paul
Count Student Number in Departments
October 31, 2020 · 2 min · 373 words · Samir Paul
Shortest Unsorted Continuous Subarray
October 31, 2020 · 7 min · 1356 words · Samir Paul
Kill Process
October 31, 2020 · 4 min · 737 words · Samir Paul
Delete Operation for Two Strings
October 31, 2020 · 4 min · 786 words · Samir Paul
Find Customer Referee
October 31, 2020 · 2 min · 227 words · Samir Paul
Investments in 2016
October 31, 2020 · 2 min · 409 words · Samir Paul
Customer Placing the Largest Number of Orders
October 31, 2020 · 2 min · 302 words · Samir Paul
Erect the Fence
October 31, 2020 · 5 min · 885 words · Samir Paul
Design In-Memory File System
October 31, 2020 · 6 min · 1181 words · Samir Paul
N-ary Tree Preorder Traversal
October 31, 2020 · 5 min · 902 words · Samir Paul
N-ary Tree Postorder Traversal
October 31, 2020 · 6 min · 1146 words · Samir Paul
Tag Validator
October 31, 2020 · 8 min · 1586 words · Samir Paul
Fraction Addition and Subtraction
October 31, 2020 · 4 min · 678 words · Samir Paul
Valid Square
October 31, 2020 · 4 min · 822 words · Samir Paul
Longest Harmonious Subsequence
October 31, 2020 · 2 min · 401 words · Samir Paul
Big Countries
October 31, 2020 · 2 min · 306 words · Samir Paul
Classes More Than 5 Students
October 31, 2020 · 2 min · 266 words · Samir Paul
Friend Requests I Overall Acceptance Rate
October 31, 2020 · 3 min · 476 words · Samir Paul
Range Addition II
October 31, 2020 · 2 min · 323 words · Samir Paul
Minimum Index Sum of Two Lists
October 31, 2020 · 5 min · 925 words · Samir Paul
Non-negative Integers without Consecutive Ones
October 31, 2020 · 4 min · 718 words · Samir Paul
Human Traffic of Stadium
October 30, 2020 · 2 min · 366 words · Samir Paul
Friend Requests II Who Has the Most Friends
October 30, 2020 · 2 min · 292 words · Samir Paul
Consecutive Available Seats
October 30, 2020 · 2 min · 408 words · Samir Paul
Design Compressed String Iterator
October 30, 2020 · 5 min · 899 words · Samir Paul
Can Place Flowers
October 30, 2020 · 4 min · 766 words · Samir Paul
Construct String from Binary Tree
October 30, 2020 · 5 min · 905 words · Samir Paul
Sales Person
October 30, 2020 · 3 min · 638 words · Samir Paul
Tree Node
October 30, 2020 · 3 min · 428 words · Samir Paul
Find Duplicate File in System
October 30, 2020 · 4 min · 828 words · Samir Paul
Triangle Judgement
October 30, 2020 · 2 min · 239 words · Samir Paul
Valid Triangle Number
October 30, 2020 · 4 min · 715 words · Samir Paul
Shortest Distance in a Plane
October 30, 2020 · 1 min · 213 words · Samir Paul
Shortest Distance in a Line
October 30, 2020 · 2 min · 271 words · Samir Paul
Second Degree Follower
October 30, 2020 · 2 min · 306 words · Samir Paul
Average Salary Departments VS Company
October 30, 2020 · 3 min · 597 words · Samir Paul
Add Bold Tag in String
October 30, 2020 · 7 min · 1375 words · Samir Paul
Merge Two Binary Trees
October 30, 2020 · 5 min · 1005 words · Samir Paul
Students Report By Geography
October 30, 2020 · 2 min · 282 words · Samir Paul
Biggest Single Number
October 30, 2020 · 2 min · 383 words · Samir Paul
Not Boring Movies
October 30, 2020 · 2 min · 314 words · Samir Paul
Task Scheduler
October 30, 2020 · 3 min · 623 words · Samir Paul
Design Circular Queue
October 30, 2020 · 9 min · 1766 words · Samir Paul
Add One Row to Tree
October 30, 2020 · 9 min · 1822 words · Samir Paul
Maximum Distance in Arrays
October 30, 2020 · 3 min · 446 words · Samir Paul
Minimum Factorization
October 29, 2020 · 2 min · 423 words · Samir Paul
Exchange Seats
October 29, 2020 · 2 min · 395 words · Samir Paul
Swap Salary
October 29, 2020 · 2 min · 296 words · Samir Paul
Maximum Product of Three Numbers
October 29, 2020 · 5 min · 872 words · Samir Paul
K Inverse Pairs Array
October 29, 2020 · 4 min · 712 words · Samir Paul
Course Schedule III
October 29, 2020 · 3 min · 638 words · Samir Paul
Design Excel Sum Formula
October 29, 2020 · 3 min · 478 words · Samir Paul
Smallest Range Covering Elements from K Lists
October 29, 2020 · 5 min · 966 words · Samir Paul
Sum of Square Numbers
October 29, 2020 · 3 min · 484 words · Samir Paul
Find the Derangement of An Array
October 29, 2020 · 3 min · 598 words · Samir Paul
Design Log Storage System
October 29, 2020 · 5 min · 953 words · Samir Paul
Exclusive Time of Functions
October 29, 2020 · 6 min · 1164 words · Samir Paul
Average of Levels in Binary Tree
October 29, 2020 · 9 min · 1736 words · Samir Paul
Shopping Offers
October 29, 2020 · 5 min · 861 words · Samir Paul
Decode Ways II
October 29, 2020 · 6 min · 1175 words · Samir Paul
Solve the Equation
October 29, 2020 · 5 min · 967 words · Samir Paul
Design Circular Deque
October 29, 2020 · 11 min · 2151 words · Samir Paul
Design Search Autocomplete System
October 29, 2020 · 6 min · 1150 words · Samir Paul
Maximum Average Subarray I
October 29, 2020 · 3 min · 480 words · Samir Paul
Maximum Average Subarray II
October 29, 2020 · 5 min · 994 words · Samir Paul
Set Mismatch
October 29, 2020 · 10 min · 2030 words · Samir Paul
Maximum Length of Pair Chain
October 29, 2020 · 5 min · 944 words · Samir Paul
Palindromic Substrings
October 29, 2020 · 4 min · 716 words · Samir Paul
Replace Words
October 29, 2020 · 7 min · 1315 words · Samir Paul
Dota2 Senate
October 28, 2020 · 5 min · 1017 words · Samir Paul
2 Keys Keyboard
October 28, 2020 · 5 min · 890 words · Samir Paul
4 Keys Keyboard
October 28, 2020 · 2 min · 406 words · Samir Paul
Find Duplicate Subtrees
October 28, 2020 · 5 min · 976 words · Samir Paul
Two Sum IV - Input is a BST
October 28, 2020 · 8 min · 1547 words · Samir Paul
Maximum Binary Tree
October 28, 2020 · 16 min · 3215 words · Samir Paul
Print Binary Tree
October 28, 2020 · 12 min · 2481 words · Samir Paul
Coin Path
October 28, 2020 · 5 min · 994 words · Samir Paul
Robot Return to Origin
October 28, 2020 · 3 min · 459 words · Samir Paul
Find K Closest Elements
October 28, 2020 · 6 min · 1264 words · Samir Paul
Split Array into Consecutive Subsequences
October 28, 2020 · 3 min · 610 words · Samir Paul
Remove 9
October 28, 2020 · 1 min · 78 words · Samir Paul
Image Smoother
October 28, 2020 · 5 min · 1000 words · Samir Paul
Maximum Width of Binary Tree
October 28, 2020 · 7 min · 1331 words · Samir Paul
Equal Tree Partition
October 28, 2020 · 4 min · 647 words · Samir Paul
Strange Printer
October 28, 2020 · 4 min · 817 words · Samir Paul
Non-decreasing Array
October 28, 2020 · 3 min · 606 words · Samir Paul
Path Sum IV
October 28, 2020 · 4 min · 708 words · Samir Paul
Beautiful Arrangement II
October 28, 2020 · 3 min · 585 words · Samir Paul
Kth Smallest Number in Multiplication Table
October 28, 2020 · 3 min · 461 words · Samir Paul
Trim a Binary Search Tree
October 28, 2020 · 10 min · 2057 words · Samir Paul
Maximum Swap
October 28, 2020 · 4 min · 837 words · Samir Paul
Second Minimum Node In a Binary Tree
October 28, 2020 · 4 min · 768 words · Samir Paul
Bulb Switcher II
October 28, 2020 · 4 min · 728 words · Samir Paul
Number of Longest Increasing Subsequence
October 27, 2020 · 13 min · 2660 words · Samir Paul
Longest Continuous Increasing Subsequence
October 27, 2020 · 6 min · 1270 words · Samir Paul
Cut Off Trees for Golf Event
October 27, 2020 · 9 min · 1847 words · Samir Paul
Implement Magic Dictionary
October 27, 2020 · 11 min · 2263 words · Samir Paul
Map Sum Pairs
October 27, 2020 · 6 min · 1223 words · Samir Paul
Valid Parenthesis String
October 27, 2020 · 6 min · 1202 words · Samir Paul
24 Game
October 27, 2020 · 7 min · 1412 words · Samir Paul
Valid Palindrome II
October 27, 2020 · 5 min · 892 words · Samir Paul
Next Closest Time
October 27, 2020 · 3 min · 550 words · Samir Paul
Baseball Game
October 27, 2020 · 5 min · 968 words · Samir Paul
K Empty Slots
October 27, 2020 · 7 min · 1322 words · Samir Paul
Redundant Connection
October 27, 2020 · 3 min · 598 words · Samir Paul
Redundant Connection II
October 27, 2020 · 5 min · 1053 words · Samir Paul
Repeated String Match
October 27, 2020 · 3 min · 471 words · Samir Paul
Longest Univalue Path
October 27, 2020 · 7 min · 1377 words · Samir Paul
Knight Probability in Chessboard
October 27, 2020 · 7 min · 1439 words · Samir Paul
Maximum Sum of 3 Non-Overlapping Subarrays
October 27, 2020 · 12 min · 2360 words · Samir Paul
Employee Importance
October 27, 2020 · 3 min · 539 words · Samir Paul
Stickers to Spell Word
October 27, 2020 · 5 min · 1023 words · Samir Paul
Top K Frequent Words
October 27, 2020 · 3 min · 442 words · Samir Paul
Binary Number with Alternating Bits
October 27, 2020 · 3 min · 514 words · Samir Paul
Number of Distinct Islands
October 27, 2020 · 5 min · 896 words · Samir Paul
Max Area of Island
October 27, 2020 · 5 min · 1005 words · Samir Paul
Count Binary Substrings
October 27, 2020 · 3 min · 496 words · Samir Paul
Degree of an Array
October 26, 2020 · 4 min · 836 words · Samir Paul
Partition to K Equal Sum Subsets
October 26, 2020 · 10 min · 1976 words · Samir Paul
Falling Squares
October 26, 2020 · 9 min · 1833 words · Samir Paul
Search in a Binary Search Tree
October 26, 2020 · 3 min · 480 words · Samir Paul
Insert into a Binary Search Tree
October 26, 2020 · 3 min · 558 words · Samir Paul
Search in a Sorted Array of Unknown Size
October 26, 2020 · 4 min · 641 words · Samir Paul
Kth Largest Element in a Stream
October 26, 2020 · 6 min · 1151 words · Samir Paul
Binary Search
October 26, 2020 · 4 min · 697 words · Samir Paul
Design HashSet
October 26, 2020 · 7 min · 1287 words · Samir Paul
Design HashMap
October 26, 2020 · 4 min · 740 words · Samir Paul
Design Linked List
October 26, 2020 · 16 min · 3387 words · Samir Paul
Insert into a Sorted Circular Linked List
October 26, 2020 · 4 min · 819 words · Samir Paul
To Lower Case
October 26, 2020 · 2 min · 370 words · Samir Paul
Random Pick with Blacklist
October 26, 2020 · 4 min · 762 words · Samir Paul
Number of Distinct Islands II
October 26, 2020 · 5 min · 1053 words · Samir Paul
Minimum ASCII Delete Sum for Two Strings
October 26, 2020 · 6 min · 1068 words · Samir Paul
Subarray Product Less Than K
October 26, 2020 · 4 min · 647 words · Samir Paul
Best Time to Buy and Sell Stock with Transaction Fee
October 26, 2020 · 9 min · 1777 words · Samir Paul
Range Module
October 26, 2020 · 14 min · 2791 words · Samir Paul
Max Stack
October 26, 2020 · 6 min · 1097 words · Samir Paul
1-bit and 2-bit Characters
October 26, 2020 · 2 min · 348 words · Samir Paul
Maximum Length of Repeated Subarray
October 26, 2020 · 4 min · 667 words · Samir Paul
Find K-th Smallest Pair Distance
October 26, 2020 · 4 min · 769 words · Samir Paul
Longest Word in Dictionary
October 26, 2020 · 4 min · 772 words · Samir Paul
Accounts Merge
October 25, 2020 · 4 min · 785 words · Samir Paul
Remove Comments
October 25, 2020 · 7 min · 1458 words · Samir Paul
Candy Crush
October 25, 2020 · 6 min · 1154 words · Samir Paul
Find Pivot Index
October 25, 2020 · 4 min · 641 words · Samir Paul
Split Linked List in Parts
October 25, 2020 · 3 min · 511 words · Samir Paul
Number of Atoms
October 25, 2020 · 2 min · 263 words · Samir Paul
Minimum Window Subsequence
October 25, 2020 · 5 min · 971 words · Samir Paul
Self Dividing Numbers
October 25, 2020 · 3 min · 519 words · Samir Paul
My Calendar I
October 25, 2020 · 5 min · 883 words · Samir Paul
Count Different Palindromic Subsequences
October 25, 2020 · 5 min · 907 words · Samir Paul
My Calendar II
October 25, 2020 · 11 min · 2327 words · Samir Paul
My Calendar III
October 25, 2020 · 8 min · 1702 words · Samir Paul
Flood Fill
October 25, 2020 · 7 min · 1487 words · Samir Paul
Sentence Similarity
October 25, 2020 · 3 min · 613 words · Samir Paul
Asteroid Collision
October 25, 2020 · 5 min · 874 words · Samir Paul
Parse Lisp Expression
October 25, 2020 · 8 min · 1635 words · Samir Paul
Sentence Similarity II
October 25, 2020 · 5 min · 949 words · Samir Paul
Monotone Increasing Digits
October 25, 2020 · 2 min · 422 words · Samir Paul
Daily Temperatures
October 25, 2020 · 4 min · 850 words · Samir Paul
Delete and Earn
October 25, 2020 · 3 min · 586 words · Samir Paul
Cherry Pickup
October 25, 2020 · 6 min · 1271 words · Samir Paul
Closest Leaf in a Binary Tree
October 25, 2020 · 5 min · 948 words · Samir Paul
Network Delay Time
October 25, 2020 · 13 min · 2572 words · Samir Paul
Find Smallest Letter Greater Than Target
October 25, 2020 · 4 min · 716 words · Samir Paul
Prefix and Suffix Search
October 24, 2020 · 8 min · 1511 words · Samir Paul
Min Cost Climbing Stairs
October 24, 2020 · 5 min · 998 words · Samir Paul
Largest Number At Least Twice of Others
October 24, 2020 · 4 min · 675 words · Samir Paul
Shortest Completing Word
October 24, 2020 · 6 min · 1186 words · Samir Paul
Contain Virus
October 24, 2020 · 9 min · 1830 words · Samir Paul
Number Of Corner Rectangles
October 24, 2020 · 4 min · 730 words · Samir Paul
IP to CIDR
October 24, 2020 · 3 min · 443 words · Samir Paul
Open the Lock
October 24, 2020 · 14 min · 2885 words · Samir Paul
Cracking the Safe
October 24, 2020 · 4 min · 659 words · Samir Paul
Reach a Number
October 24, 2020 · 3 min · 458 words · Samir Paul
Pour Water
October 24, 2020 · 5 min · 924 words · Samir Paul
Pyramid Transition Matrix
October 24, 2020 · 5 min · 999 words · Samir Paul
Set Intersection Size At Least Two
October 24, 2020 · 3 min · 601 words · Samir Paul
Bold Words in String
October 24, 2020 · 7 min · 1284 words · Samir Paul
Employee Free Time
October 24, 2020 · 1 min · 170 words · Samir Paul
Find Anagram Mappings
October 24, 2020 · 2 min · 272 words · Samir Paul
Special Binary String
October 24, 2020 · 3 min · 520 words · Samir Paul
Prime Number of Set Bits in Binary Representation
October 24, 2020 · 3 min · 439 words · Samir Paul
Partition Labels
October 24, 2020 · 5 min · 893 words · Samir Paul
Largest Plus Sign
October 24, 2020 · 4 min · 851 words · Samir Paul
Couples Holding Hands
October 24, 2020 · 5 min · 891 words · Samir Paul
Toeplitz Matrix
October 24, 2020 · 3 min · 479 words · Samir Paul
Reorganize String
October 24, 2020 · 7 min · 1428 words · Samir Paul
Max Chunks To Make Sorted II
October 24, 2020 · 3 min · 548 words · Samir Paul
Max Chunks To Make Sorted
October 23, 2020 · 4 min · 811 words · Samir Paul
Basic Calculator IV
October 23, 2020 · 3 min · 443 words · Samir Paul
Jewels and Stones
October 23, 2020 · 3 min · 486 words · Samir Paul
Basic Calculator III
October 23, 2020 · 2 min · 282 words · Samir Paul
Sliding Puzzle
October 23, 2020 · 11 min · 2227 words · Samir Paul
Minimize Max Distance to Gas Station
October 23, 2020 · 3 min · 529 words · Samir Paul
Global and Local Inversions
October 23, 2020 · 5 min · 1011 words · Samir Paul
Split BST
October 23, 2020 · 4 min · 826 words · Samir Paul
Swap Adjacent in LR String
October 23, 2020 · 3 min · 611 words · Samir Paul
Swim in Rising Water
October 23, 2020 · 8 min · 1510 words · Samir Paul
K-th Symbol in Grammar
October 23, 2020 · 3 min · 463 words · Samir Paul
Reaching Points
October 23, 2020 · 3 min · 573 words · Samir Paul
Rabbits in Forest
October 23, 2020 · 2 min · 278 words · Samir Paul
Transform to Chessboard
October 23, 2020 · 7 min · 1383 words · Samir Paul
Minimum Distance Between BST Nodes
October 23, 2020 · 3 min · 566 words · Samir Paul
Letter Case Permutation
October 23, 2020 · 5 min · 913 words · Samir Paul
Is Graph Bipartite
October 23, 2020 · 8 min · 1645 words · Samir Paul
K-th Smallest Prime Fraction
October 23, 2020 · 4 min · 698 words · Samir Paul
Cheapest Flights Within K Stops
October 23, 2020 · 7 min · 1315 words · Samir Paul
Rotated Digits
October 23, 2020 · 7 min · 1377 words · Samir Paul
Escape The Ghosts
October 23, 2020 · 3 min · 586 words · Samir Paul
Domino and Tromino Tiling
October 23, 2020 · 3 min · 618 words · Samir Paul
Custom Sort String
October 23, 2020 · 5 min · 1037 words · Samir Paul
Number of Matching Subsequences
October 23, 2020 · 7 min · 1315 words · Samir Paul
Preimage Size of Factorial Zeroes Function
October 22, 2020 · 3 min · 538 words · Samir Paul
Valid Tic-Tac-Toe State
October 22, 2020 · 6 min · 1094 words · Samir Paul
Number of Subarrays with Bounded Maximum
October 22, 2020 · 5 min · 1019 words · Samir Paul
Rotate String
October 22, 2020 · 2 min · 294 words · Samir Paul
All Paths From Source to Target
October 22, 2020 · 4 min · 767 words · Samir Paul
Smallest Rotation with Highest Score
October 22, 2020 · 4 min · 649 words · Samir Paul
Champagne Tower
October 22, 2020 · 6 min · 1237 words · Samir Paul
Similar RGB Color
October 22, 2020 · 2 min · 363 words · Samir Paul
Minimum Swaps To Make Sequences Increasing
October 22, 2020 · 3 min · 593 words · Samir Paul
Find Eventual Safe States
October 22, 2020 · 7 min · 1366 words · Samir Paul
Bricks Falling When Hit
October 22, 2020 · 9 min · 1839 words · Samir Paul
Unique Morse Code Words
October 22, 2020 · 4 min · 722 words · Samir Paul
Split Array With Same Average
October 22, 2020 · 4 min · 838 words · Samir Paul
Number of Lines To Write String
October 22, 2020 · 3 min · 605 words · Samir Paul
Max Increase to Keep City Skyline
October 22, 2020 · 4 min · 746 words · Samir Paul
Soup Servings
October 22, 2020 · 5 min · 908 words · Samir Paul
Expressive Words
October 22, 2020 · 5 min · 939 words · Samir Paul
Chalkboard XOR Game
October 22, 2020 · 2 min · 391 words · Samir Paul
Subdomain Visit Count
October 22, 2020 · 3 min · 619 words · Samir Paul
Largest Triangle Area
October 22, 2020 · 3 min · 521 words · Samir Paul
Largest Sum of Averages
October 22, 2020 · 4 min · 753 words · Samir Paul
Binary Tree Pruning
October 22, 2020 · 5 min · 911 words · Samir Paul
Bus Routes
October 22, 2020 · 6 min · 1237 words · Samir Paul
Ambiguous Coordinates
October 22, 2020 · 5 min · 906 words · Samir Paul
Linked List Components
October 21, 2020 · 5 min · 1019 words · Samir Paul
Race Car
October 21, 2020 · 3 min · 591 words · Samir Paul
Most Common Word
October 21, 2020 · 4 min · 754 words · Samir Paul
Short Encoding of Words
October 21, 2020 · 7 min · 1282 words · Samir Paul
Shortest Distance to a Character
October 21, 2020 · 4 min · 852 words · Samir Paul
Card Flipping Game
October 21, 2020 · 4 min · 759 words · Samir Paul
Binary Trees With Factors
October 21, 2020 · 4 min · 832 words · Samir Paul
Goat Latin
October 21, 2020 · 3 min · 543 words · Samir Paul
Friends Of Appropriate Ages
October 21, 2020 · 3 min · 607 words · Samir Paul
Most Profit Assigning Work
October 21, 2020 · 3 min · 561 words · Samir Paul
Making A Large Island
October 21, 2020 · 15 min · 3133 words · Samir Paul
Count Unique Characters of All Substrings of a Given String
October 21, 2020 · 5 min · 878 words · Samir Paul
Consecutive Numbers Sum
October 21, 2020 · 2 min · 348 words · Samir Paul
Positions of Large Groups
October 21, 2020 · 3 min · 453 words · Samir Paul
Masking Personal Information
October 21, 2020 · 5 min · 897 words · Samir Paul
Flipping an Image
October 21, 2020 · 3 min · 516 words · Samir Paul
Find And Replace in String
October 21, 2020 · 4 min · 809 words · Samir Paul
Sum of Distances in Tree
October 21, 2020 · 5 min · 971 words · Samir Paul
Image Overlap
October 21, 2020 · 4 min · 732 words · Samir Paul
Rectangle Overlap
October 21, 2020 · 2 min · 383 words · Samir Paul
New 21 Game
October 21, 2020 · 6 min · 1173 words · Samir Paul
Push Dominoes
October 21, 2020 · 5 min · 1065 words · Samir Paul
Similar String Groups
October 21, 2020 · 4 min · 784 words · Samir Paul
Magic Squares In Grid
October 21, 2020 · 7 min · 1319 words · Samir Paul
Keys and Rooms
October 20, 2020 · 4 min · 730 words · Samir Paul
Split Array into Fibonacci Sequence
October 20, 2020 · 4 min · 765 words · Samir Paul
Guess the Word
October 20, 2020 · 2 min · 357 words · Samir Paul
Backspace String Compare
October 20, 2020 · 6 min · 1097 words · Samir Paul
Longest Mountain in Array
October 20, 2020 · 6 min · 1081 words · Samir Paul
Hand of Straights
October 20, 2020 · 5 min · 879 words · Samir Paul
Shortest Path Visiting All Nodes
October 20, 2020 · 7 min · 1445 words · Samir Paul
Shifting Letters
October 20, 2020 · 3 min · 525 words · Samir Paul
Maximize Distance to Closest Person
October 20, 2020 · 3 min · 627 words · Samir Paul
Rectangle Area II
October 20, 2020 · 9 min · 1830 words · Samir Paul
Loud and Rich
October 20, 2020 · 5 min · 880 words · Samir Paul
Peak Index in a Mountain Array
October 20, 2020 · 3 min · 618 words · Samir Paul
Car Fleet
October 20, 2020 · 4 min · 832 words · Samir Paul
K-Similar Strings
October 20, 2020 · 8 min · 1676 words · Samir Paul
Exam Room
October 20, 2020 · 7 min · 1306 words · Samir Paul
Score of Parentheses
October 20, 2020 · 3 min · 570 words · Samir Paul
Minimum Cost to Hire K Workers
October 20, 2020 · 4 min · 715 words · Samir Paul
Mirror Reflection
October 20, 2020 · 3 min · 525 words · Samir Paul
Buddy Strings
October 20, 2020 · 4 min · 750 words · Samir Paul
Lemonade Change
October 20, 2020 · 4 min · 811 words · Samir Paul
Score After Flipping Matrix
October 20, 2020 · 4 min · 809 words · Samir Paul
Shortest Subarray with Sum at Least K
October 20, 2020 · 3 min · 517 words · Samir Paul
All Nodes Distance K in Binary Tree
October 20, 2020 · 5 min · 916 words · Samir Paul
Shortest Path to Get All Keys
October 20, 2020 · 7 min · 1419 words · Samir Paul
Smallest Subtree with all the Deepest Nodes
October 19, 2020 · 4 min · 798 words · Samir Paul
Prime Palindrome
October 19, 2020 · 3 min · 635 words · Samir Paul
Transpose Matrix
October 19, 2020 · 2 min · 342 words · Samir Paul
Binary Gap
October 19, 2020 · 3 min · 606 words · Samir Paul
Reordered Power of 2
October 19, 2020 · 2 min · 368 words · Samir Paul
Advantage Shuffle
October 19, 2020 · 4 min · 659 words · Samir Paul
Minimum Number of Refueling Stops
October 19, 2020 · 4 min · 803 words · Samir Paul
Leaf-Similar Trees
October 19, 2020 · 4 min · 775 words · Samir Paul
Length of Longest Fibonacci Subsequence
October 19, 2020 · 4 min · 830 words · Samir Paul
Walking Robot Simulation
October 19, 2020 · 7 min · 1464 words · Samir Paul
Koko Eating Bananas
October 19, 2020 · 4 min · 656 words · Samir Paul
Middle of the Linked List
October 19, 2020 · 4 min · 840 words · Samir Paul
Stone Game
October 19, 2020 · 6 min · 1090 words · Samir Paul
Nth Magical Number
October 19, 2020 · 3 min · 463 words · Samir Paul
Profitable Schemes
October 19, 2020 · 9 min · 1736 words · Samir Paul
Decoded String at Index
October 19, 2020 · 4 min · 806 words · Samir Paul
Boats to Save People
October 19, 2020 · 2 min · 371 words · Samir Paul
Reachable Nodes In Subdivided Graph
October 19, 2020 · 6 min · 1136 words · Samir Paul
Projection Area of 3D Shapes
October 19, 2020 · 4 min · 679 words · Samir Paul
Uncommon Words from Two Sentences
October 19, 2020 · 3 min · 627 words · Samir Paul
Spiral Matrix III
October 19, 2020 · 4 min · 721 words · Samir Paul
Possible Bipartition
October 19, 2020 · 7 min · 1417 words · Samir Paul
Super Egg Drop
October 19, 2020 · 8 min · 1701 words · Samir Paul
Fair Candy Swap
October 19, 2020 · 3 min · 527 words · Samir Paul
Construct Binary Tree from Preorder and Postorder Traversal
October 18, 2020 · 3 min · 610 words · Samir Paul
Find and Replace Pattern
October 18, 2020 · 4 min · 707 words · Samir Paul
Sum of Subsequence Widths
October 18, 2020 · 3 min · 436 words · Samir Paul
Surface Area of 3D Shapes
October 18, 2020 · 3 min · 475 words · Samir Paul
Groups of Special-Equivalent Strings
October 18, 2020 · 3 min · 563 words · Samir Paul
All Possible Full Binary Trees
October 18, 2020 · 6 min · 1244 words · Samir Paul
Maximum Frequency Stack
October 18, 2020 · 6 min · 1218 words · Samir Paul
Monotonic Array
October 18, 2020 · 4 min · 684 words · Samir Paul
Increasing Order Search Tree
October 18, 2020 · 4 min · 829 words · Samir Paul
Bitwise ORs of Subarrays
October 18, 2020 · 4 min · 701 words · Samir Paul
Orderly Queue
October 18, 2020 · 4 min · 644 words · Samir Paul
RLE Iterator
October 18, 2020 · 5 min · 1037 words · Samir Paul
Online Stock Span
October 18, 2020 · 6 min · 1082 words · Samir Paul
Numbers At Most N Given Digit Set
October 18, 2020 · 5 min · 984 words · Samir Paul
Valid Permutations for DI Sequence
October 18, 2020 · 13 min · 2571 words · Samir Paul
Fruit Into Baskets
October 18, 2020 · 7 min · 1487 words · Samir Paul
Sort Array By Parity
October 18, 2020 · 4 min · 682 words · Samir Paul
Super Palindromes
October 18, 2020 · 1 min · 140 words · Samir Paul
Sum of Subarray Minimums
October 18, 2020 · 7 min · 1351 words · Samir Paul
Smallest Range I
October 18, 2020 · 2 min · 423 words · Samir Paul
Snakes and Ladders
October 18, 2020 · 6 min · 1120 words · Samir Paul
Smallest Range II
October 18, 2020 · 3 min · 448 words · Samir Paul
Online Election
October 18, 2020 · 5 min · 928 words · Samir Paul
Sort an Array
October 18, 2020 · 9 min · 1869 words · Samir Paul
Cat and Mouse
October 17, 2020 · 8 min · 1679 words · Samir Paul
X of a Kind in a Deck of Cards
October 17, 2020 · 2 min · 393 words · Samir Paul
Partition Array into Disjoint Intervals
October 17, 2020 · 3 min · 452 words · Samir Paul
Word Subsets
October 17, 2020 · 3 min · 631 words · Samir Paul
Reverse Only Letters
October 17, 2020 · 3 min · 567 words · Samir Paul
Maximum Sum Circular Subarray
October 17, 2020 · 5 min · 976 words · Samir Paul
Complete Binary Tree Inserter
October 17, 2020 · 8 min · 1495 words · Samir Paul
Number of Music Playlists
October 17, 2020 · 8 min · 1671 words · Samir Paul
Minimum Add to Make Parentheses Valid
October 17, 2020 · 3 min · 578 words · Samir Paul
Sort Array By Parity II
October 17, 2020 · 3 min · 442 words · Samir Paul
3Sum With Multiplicity
October 17, 2020 · 3 min · 586 words · Samir Paul
Minimize Malware Spread
October 17, 2020 · 5 min · 1056 words · Samir Paul
Long Pressed Name
October 17, 2020 · 3 min · 627 words · Samir Paul
Flip String to Monotone Increasing
October 17, 2020 · 5 min · 939 words · Samir Paul
Three Equal Parts
October 17, 2020 · 5 min · 942 words · Samir Paul
Minimize Malware Spread II
October 17, 2020 · 7 min · 1352 words · Samir Paul
Unique Email Addresses
October 17, 2020 · 4 min · 845 words · Samir Paul
Binary Subarrays With Sum
October 17, 2020 · 5 min · 908 words · Samir Paul
Minimum Falling Path Sum
October 17, 2020 · 3 min · 594 words · Samir Paul
Beautiful Array
October 17, 2020 · 2 min · 403 words · Samir Paul
Number of Recent Calls
October 17, 2020 · 6 min · 1181 words · Samir Paul
Shortest Bridge
October 17, 2020 · 6 min · 1074 words · Samir Paul
Knight Dialer
October 17, 2020 · 6 min · 1121 words · Samir Paul
Stamping The Sequence
October 17, 2020 · 9 min · 1907 words · Samir Paul
Reorder Data in Log Files
October 16, 2020 · 3 min · 566 words · Samir Paul
Range Sum of BST
October 16, 2020 · 3 min · 627 words · Samir Paul
Minimum Area Rectangle
October 16, 2020 · 4 min · 647 words · Samir Paul
Distinct Subsequences II
October 16, 2020 · 6 min · 1095 words · Samir Paul
Valid Mountain Array
October 16, 2020 · 2 min · 410 words · Samir Paul
DI String Match
October 16, 2020 · 3 min · 556 words · Samir Paul
Find the Shortest Superstring
October 16, 2020 · 7 min · 1356 words · Samir Paul
Delete Columns to Make Sorted
October 16, 2020 · 3 min · 550 words · Samir Paul
Minimum Increment to Make Array Unique
October 16, 2020 · 2 min · 385 words · Samir Paul
Validate Stack Sequences
October 16, 2020 · 3 min · 599 words · Samir Paul
Most Stones Removed with Same Row or Column
October 16, 2020 · 4 min · 671 words · Samir Paul
Bag of Tokens
October 16, 2020 · 4 min · 656 words · Samir Paul
Largest Time for Given Digits
October 16, 2020 · 4 min · 732 words · Samir Paul
Reveal Cards In Increasing Order
October 16, 2020 · 3 min · 531 words · Samir Paul
Flip Equivalent Binary Trees
October 16, 2020 · 4 min · 666 words · Samir Paul
Largest Component Size by Common Factor
October 16, 2020 · 4 min · 776 words · Samir Paul
Verifying an Alien Dictionary
October 16, 2020 · 5 min · 1041 words · Samir Paul
Array of Doubled Pairs
October 16, 2020 · 3 min · 458 words · Samir Paul
Delete Columns to Make Sorted II
October 16, 2020 · 2 min · 380 words · Samir Paul
Tallest Billboard
October 16, 2020 · 7 min · 1379 words · Samir Paul
Prison Cells After N Days
October 16, 2020 · 2 min · 264 words · Samir Paul
Check Completeness of a Binary Tree
October 16, 2020 · 3 min · 555 words · Samir Paul
Regions Cut By Slashes
October 16, 2020 · 6 min · 1118 words · Samir Paul
Delete Columns to Make Sorted III
October 16, 2020 · 3 min · 634 words · Samir Paul
N-Repeated Element in Size 2N Array
October 15, 2020 · 2 min · 350 words · Samir Paul
Maximum Width Ramp
October 15, 2020 · 3 min · 490 words · Samir Paul
Minimum Area Rectangle II
October 15, 2020 · 6 min · 1222 words · Samir Paul
Least Operators to Express Number
October 15, 2020 · 5 min · 883 words · Samir Paul
Univalued Binary Tree
October 15, 2020 · 4 min · 747 words · Samir Paul
Vowel Spellchecker
October 15, 2020 · 5 min · 1030 words · Samir Paul
Numbers With Same Consecutive Differences
October 15, 2020 · 3 min · 576 words · Samir Paul
Binary Tree Cameras
October 15, 2020 · 5 min · 901 words · Samir Paul
Pancake Sorting
October 15, 2020 · 5 min · 919 words · Samir Paul
Powerful Integers
October 15, 2020 · 5 min · 856 words · Samir Paul
Flip Binary Tree To Match Preorder Traversal
October 15, 2020 · 5 min · 1053 words · Samir Paul
Equal Rational Numbers
October 15, 2020 · 2 min · 246 words · Samir Paul
K Closest Points to Origin
October 15, 2020 · 2 min · 425 words · Samir Paul
Subarray Sums Divisible by K
October 15, 2020 · 2 min · 411 words · Samir Paul
Odd Even Jump
October 15, 2020 · 7 min · 1304 words · Samir Paul
Largest Perimeter Triangle
October 15, 2020 · 3 min · 570 words · Samir Paul
Squares of a Sorted Array
October 15, 2020 · 4 min · 696 words · Samir Paul
Longest Turbulent Subarray
October 15, 2020 · 3 min · 571 words · Samir Paul
Distribute Coins in Binary Tree
October 15, 2020 · 4 min · 821 words · Samir Paul
Unique Paths III
October 15, 2020 · 7 min · 1457 words · Samir Paul
Time Based Key-Value Store
October 15, 2020 · 4 min · 721 words · Samir Paul
Triples with Bitwise AND Equal To Zero
October 15, 2020 · 3 min · 630 words · Samir Paul
Minimum Cost For Tickets
October 15, 2020 · 5 min · 988 words · Samir Paul
String Without AAA or BBB
October 15, 2020 · 3 min · 500 words · Samir Paul
Sum of Even Numbers After Queries
October 14, 2020 · 4 min · 794 words · Samir Paul
Interval List Intersections
October 14, 2020 · 4 min · 696 words · Samir Paul
Vertical Order Traversal of a Binary Tree
October 14, 2020 · 5 min · 865 words · Samir Paul
Smallest String Starting From Leaf
October 14, 2020 · 4 min · 683 words · Samir Paul
Add to Array-Form of Integer
October 14, 2020 · 4 min · 711 words · Samir Paul
Satisfiability of Equality Equations
October 14, 2020 · 4 min · 805 words · Samir Paul
Broken Calculator
October 14, 2020 · 2 min · 364 words · Samir Paul
Subarrays with K Different Integers
October 14, 2020 · 3 min · 619 words · Samir Paul
Cousins in Binary Tree
October 14, 2020 · 8 min · 1522 words · Samir Paul
Rotting Oranges
October 14, 2020 · 7 min · 1316 words · Samir Paul
Minimum Number of K Consecutive Bit Flips
October 14, 2020 · 5 min · 944 words · Samir Paul
Number of Squareful Arrays
October 14, 2020 · 5 min · 891 words · Samir Paul
Find the Town Judge
October 14, 2020 · 4 min · 803 words · Samir Paul
Maximum Binary Tree II
October 14, 2020 · 9 min · 1714 words · Samir Paul
Available Captures for Rook
October 14, 2020 · 5 min · 853 words · Samir Paul
Minimum Cost to Merge Stones
October 14, 2020 · 5 min · 993 words · Samir Paul
Grid Illumination
October 14, 2020 · 7 min · 1475 words · Samir Paul
Find Common Characters
October 14, 2020 · 3 min · 528 words · Samir Paul
Check If Word Is Valid After Substitutions
October 14, 2020 · 3 min · 568 words · Samir Paul
Max Consecutive Ones III
October 14, 2020 · 5 min · 877 words · Samir Paul
Maximize Sum Of Array After K Negations
October 14, 2020 · 4 min · 811 words · Samir Paul
Clumsy Factorial
October 14, 2020 · 2 min · 413 words · Samir Paul
Minimum Domino Rotations For Equal Row
October 14, 2020 · 5 min · 883 words · Samir Paul
Construct Binary Search Tree from Preorder Traversal
October 14, 2020 · 6 min · 1194 words · Samir Paul
Complement of Base 10 Integer
October 13, 2020 · 3 min · 480 words · Samir Paul
Pairs of Songs With Total Durations Divisible by 60
October 13, 2020 · 4 min · 793 words · Samir Paul
Capacity To Ship Packages Within D Days
October 13, 2020 · 4 min · 838 words · Samir Paul
Numbers With Repeated Digits
October 13, 2020 · 9 min · 1855 words · Samir Paul
Partition Array Into Three Parts With Equal Sum
October 13, 2020 · 3 min · 595 words · Samir Paul
Best Sightseeing Pair
October 13, 2020 · 2 min · 382 words · Samir Paul
Smallest Integer Divisible by K
October 13, 2020 · 2 min · 403 words · Samir Paul
Binary String With Substrings Representing 1 To N
October 13, 2020 · 2 min · 357 words · Samir Paul
Convert to Base -2
October 13, 2020 · 3 min · 461 words · Samir Paul
Binary Prefix Divisible By 5
October 13, 2020 · 2 min · 363 words · Samir Paul
Next Greater Node In Linked List
October 13, 2020 · 6 min · 1254 words · Samir Paul
Number of Enclaves
October 13, 2020 · 16 min · 3342 words · Samir Paul
Remove Outermost Parentheses
October 13, 2020 · 5 min · 933 words · Samir Paul
Sum of Root To Leaf Binary Numbers
October 13, 2020 · 5 min · 944 words · Samir Paul
Camelcase Matching
October 13, 2020 · 5 min · 994 words · Samir Paul
Video Stitching
October 13, 2020 · 3 min · 638 words · Samir Paul
Divisor Game
October 13, 2020 · 2 min · 220 words · Samir Paul
Maximum Difference Between Node and Ancestor
October 13, 2020 · 5 min · 973 words · Samir Paul
Longest Arithmetic Subsequence
October 13, 2020 · 3 min · 544 words · Samir Paul
Recover a Tree From Preorder Traversal
October 13, 2020 · 2 min · 347 words · Samir Paul
Two City Scheduling
October 13, 2020 · 3 min · 469 words · Samir Paul
Matrix Cells in Distance Order
October 13, 2020 · 4 min · 761 words · Samir Paul
Maximum Sum of Two Non-Overlapping Subarrays
October 13, 2020 · 4 min · 666 words · Samir Paul
Stream of Characters
October 13, 2020 · 6 min · 1105 words · Samir Paul
Moving Stones Until Consecutive
October 12, 2020 · 4 min · 709 words · Samir Paul
Coloring A Border
October 12, 2020 · 5 min · 973 words · Samir Paul
Uncrossed Lines
October 12, 2020 · 4 min · 654 words · Samir Paul
Escape a Large Maze
October 12, 2020 · 6 min · 1215 words · Samir Paul
Valid Boomerang
October 12, 2020 · 2 min · 366 words · Samir Paul
Binary Search Tree to Greater Sum Tree
October 12, 2020 · 10 min · 2072 words · Samir Paul
Minimum Score Triangulation of Polygon
October 12, 2020 · 8 min · 1639 words · Samir Paul
Moving Stones Until Consecutive II
October 12, 2020 · 4 min · 841 words · Samir Paul
Robot Bounded In Circle
October 12, 2020 · 4 min · 846 words · Samir Paul
Flower Planting With No Adjacent
October 12, 2020 · 4 min · 764 words · Samir Paul
Partition Array for Maximum Sum
October 12, 2020 · 4 min · 686 words · Samir Paul
Longest Duplicate Substring
October 12, 2020 · 4 min · 798 words · Samir Paul
Customers Who Bought All Products
October 12, 2020 · 2 min · 287 words · Samir Paul
Last Stone Weight
October 12, 2020 · 4 min · 698 words · Samir Paul
Remove All Adjacent Duplicates In String
October 12, 2020 · 3 min · 534 words · Samir Paul
Longest String Chain
October 12, 2020 · 5 min · 895 words · Samir Paul
Last Stone Weight II
October 12, 2020 · 6 min · 1169 words · Samir Paul
Actors and Directors Who Cooperated At Least Three Times
October 12, 2020 · 2 min · 249 words · Samir Paul
Height Checker
October 12, 2020 · 3 min · 616 words · Samir Paul
Grumpy Bookstore Owner
October 12, 2020 · 4 min · 797 words · Samir Paul
Previous Permutation With One Swap
October 12, 2020 · 3 min · 550 words · Samir Paul
Distant Barcodes
October 12, 2020 · 3 min · 578 words · Samir Paul
Shortest Way to Form String
October 12, 2020 · 3 min · 538 words · Samir Paul
Confusing Number
October 12, 2020 · 3 min · 588 words · Samir Paul
Campus Bikes
October 11, 2020 · 5 min · 911 words · Samir Paul
Minimize Rounding Error to Meet Target
October 11, 2020 · 4 min · 668 words · Samir Paul
All Paths from Source Lead to Destination
October 11, 2020 · 4 min · 749 words · Samir Paul
Missing Element in Sorted Array
October 11, 2020 · 3 min · 602 words · Samir Paul
Lexicographically Smallest Equivalent String
October 11, 2020 · 4 min · 836 words · Samir Paul
Longest Repeating Substring
October 11, 2020 · 3 min · 448 words · Samir Paul
Number of Valid Subarrays
October 11, 2020 · 5 min · 902 words · Samir Paul
Fixed Point
October 11, 2020 · 3 min · 481 words · Samir Paul
Index Pairs of a String
October 11, 2020 · 4 min · 819 words · Samir Paul
Campus Bikes II
October 11, 2020 · 5 min · 873 words · Samir Paul
Digit Count in Range
October 11, 2020 · 5 min · 944 words · Samir Paul
Product Sales Analysis I
October 11, 2020 · 2 min · 358 words · Samir Paul
Product Sales Analysis II
October 11, 2020 · 2 min · 288 words · Samir Paul
Product Sales Analysis III
October 11, 2020 · 2 min · 390 words · Samir Paul
Greatest Common Divisor of Strings
October 11, 2020 · 3 min · 442 words · Samir Paul
Flip Columns For Maximum Number of Equal Rows
October 11, 2020 · 3 min · 486 words · Samir Paul
Adding Two Negabinary Numbers
October 11, 2020 · 5 min · 1036 words · Samir Paul
Number of Submatrices That Sum to Target
October 11, 2020 · 4 min · 820 words · Samir Paul
Project Employees I
October 11, 2020 · 2 min · 313 words · Samir Paul
Project Employees II
October 11, 2020 · 2 min · 341 words · Samir Paul
Project Employees III
October 11, 2020 · 2 min · 406 words · Samir Paul
Occurrences After Bigram
October 11, 2020 · 3 min · 463 words · Samir Paul
Letter Tile Possibilities
October 11, 2020 · 3 min · 482 words · Samir Paul
Insufficient Nodes in Root to Leaf Paths
October 11, 2020 · 5 min · 922 words · Samir Paul
Smallest Subsequence of Distinct Characters
October 10, 2020 · 4 min · 727 words · Samir Paul
Sales Analysis I
October 10, 2020 · 2 min · 394 words · Samir Paul
Sales Analysis II
October 10, 2020 · 2 min · 355 words · Samir Paul
Sales Analysis III
October 10, 2020 · 2 min · 388 words · Samir Paul
Sum of Digits in the Minimum Number
October 10, 2020 · 2 min · 310 words · Samir Paul
High Five
October 10, 2020 · 4 min · 705 words · Samir Paul
Brace Expansion
October 10, 2020 · 2 min · 423 words · Samir Paul
Confusing Number II
October 10, 2020 · 5 min · 1011 words · Samir Paul
Duplicate Zeros
October 10, 2020 · 4 min · 714 words · Samir Paul
Largest Values From Labels
October 10, 2020 · 4 min · 744 words · Samir Paul
Shortest Path in Binary Matrix
October 10, 2020 · 6 min · 1070 words · Samir Paul
Shortest Common Supersequence
October 10, 2020 · 5 min · 1051 words · Samir Paul
Statistics from a Large Sample
October 10, 2020 · 6 min · 1148 words · Samir Paul
Car Pooling
October 10, 2020 · 5 min · 901 words · Samir Paul
Find in Mountain Array
October 10, 2020 · 7 min · 1457 words · Samir Paul
Brace Expansion II
October 10, 2020 · 4 min · 733 words · Samir Paul
Game Play Analysis V
October 10, 2020 · 2 min · 408 words · Samir Paul
Unpopular Books
October 10, 2020 · 2 min · 357 words · Samir Paul
Two Sum Less Than K
October 10, 2020 · 5 min · 1007 words · Samir Paul
Find K-Length Substrings With No Repeated Characters
October 10, 2020 · 7 min · 1337 words · Samir Paul
The Earliest Moment When Everyone Become Friends
October 10, 2020 · 10 min · 2099 words · Samir Paul
Path With Maximum Minimum Value
October 10, 2020 · 15 min · 3119 words · Samir Paul
Distribute Candies to People
October 10, 2020 · 3 min · 583 words · Samir Paul
Path In Zigzag Labelled Binary Tree
October 10, 2020 · 3 min · 607 words · Samir Paul
Filling Bookcase Shelves
October 9, 2020 · 6 min · 1070 words · Samir Paul
Parsing A Boolean Expression
October 9, 2020 · 6 min · 1202 words · Samir Paul
New Users Daily Count
October 9, 2020 · 2 min · 331 words · Samir Paul
Defanging an IP Address
October 9, 2020 · 1 min · 206 words · Samir Paul
Corporate Flight Bookings
October 9, 2020 · 8 min · 1584 words · Samir Paul
Delete Nodes And Return Forest
October 9, 2020 · 6 min · 1128 words · Samir Paul
Maximum Nesting Depth of Two Valid Parentheses Strings
October 9, 2020 · 3 min · 629 words · Samir Paul
Highest Grade For Each Student
October 9, 2020 · 2 min · 387 words · Samir Paul
Reported Posts
October 9, 2020 · 2 min · 353 words · Samir Paul
Print in Order
October 9, 2020 · 4 min · 850 words · Samir Paul
Print FooBar Alternately
October 9, 2020 · 4 min · 683 words · Samir Paul
Print Zero Even Odd
October 9, 2020 · 4 min · 851 words · Samir Paul
Building H2O
October 9, 2020 · 3 min · 585 words · Samir Paul
Number of Days in a Month
October 9, 2020 · 3 min · 481 words · Samir Paul
Remove Vowels from a String
October 9, 2020 · 2 min · 334 words · Samir Paul
Maximum Average Subtree
October 9, 2020 · 5 min · 922 words · Samir Paul
Divide Array Into Increasing Sequences
October 9, 2020 · 3 min · 536 words · Samir Paul
Relative Sort Array
October 9, 2020 · 3 min · 606 words · Samir Paul
Lowest Common Ancestor of Deepest Leaves
October 9, 2020 · 6 min · 1147 words · Samir Paul
Longest Well-Performing Interval
October 9, 2020 · 4 min · 693 words · Samir Paul
Smallest Sufficient Team
October 9, 2020 · 8 min · 1558 words · Samir Paul
Active Businesses
October 9, 2020 · 2 min · 384 words · Samir Paul
User Purchase Platform
October 9, 2020 · 3 min · 433 words · Samir Paul
Number of Equivalent Domino Pairs
October 9, 2020 · 3 min · 558 words · Samir Paul
Shortest Path with Alternating Colors
October 8, 2020 · 6 min · 1133 words · Samir Paul
Minimum Cost Tree From Leaf Values
October 8, 2020 · 10 min · 2086 words · Samir Paul
Maximum of Absolute Value Expression
October 8, 2020 · 4 min · 842 words · Samir Paul
Reported Posts II
October 8, 2020 · 3 min · 503 words · Samir Paul
Largest Unique Number
October 8, 2020 · 3 min · 531 words · Samir Paul
Armstrong Number
October 8, 2020 · 3 min · 460 words · Samir Paul
Connecting Cities With Minimum Cost
October 8, 2020 · 5 min · 945 words · Samir Paul
Parallel Courses
October 8, 2020 · 5 min · 1020 words · Samir Paul
N-th Tribonacci Number
October 8, 2020 · 10 min · 1961 words · Samir Paul
Alphabet Board Path
October 8, 2020 · 4 min · 688 words · Samir Paul
Largest 1-Bordered Square
October 8, 2020 · 5 min · 889 words · Samir Paul
Stone Game II
October 8, 2020 · 6 min · 1176 words · Samir Paul
User Activity for the Past 30 Days I
October 8, 2020 · 2 min · 318 words · Samir Paul
User Activity for the Past 30 Days II
October 8, 2020 · 2 min · 406 words · Samir Paul
Longest Common Subsequence
October 8, 2020 · 6 min · 1225 words · Samir Paul
Decrease Elements To Make Array Zigzag
October 8, 2020 · 4 min · 755 words · Samir Paul
Binary Tree Coloring Game
October 8, 2020 · 7 min · 1381 words · Samir Paul
Snapshot Array
October 8, 2020 · 5 min · 899 words · Samir Paul
Longest Chunked Palindrome Decomposition
October 8, 2020 · 10 min · 2079 words · Samir Paul
Article Views I
October 8, 2020 · 2 min · 244 words · Samir Paul
Article Views II
October 8, 2020 · 2 min · 248 words · Samir Paul
Check If a Number Is Majority Element in a Sorted Array
October 8, 2020 · 5 min · 1061 words · Samir Paul
Minimum Swaps to Group All 1’s Together
October 8, 2020 · 3 min · 626 words · Samir Paul
Analyze User Website Visit Pattern
October 8, 2020 · 6 min · 1269 words · Samir Paul
String Transforms Into Another String
October 7, 2020 · 4 min · 793 words · Samir Paul
Day of the Year
October 7, 2020 · 4 min · 749 words · Samir Paul
Number of Dice Rolls With Target Sum
October 7, 2020 · 7 min · 1465 words · Samir Paul
Swap For Longest Repeated Character Substring
October 7, 2020 · 5 min · 973 words · Samir Paul
Online Majority Element In Subarray
October 7, 2020 · 12 min · 2367 words · Samir Paul
Market Analysis I
October 7, 2020 · 3 min · 495 words · Samir Paul
Market Analysis II
October 7, 2020 · 3 min · 546 words · Samir Paul
Find Words That Can Be Formed by Characters
October 7, 2020 · 4 min · 843 words · Samir Paul
Maximum Level Sum of a Binary Tree
October 7, 2020 · 8 min · 1658 words · Samir Paul
As Far from Land as Possible
October 7, 2020 · 6 min · 1111 words · Samir Paul
Last Substring in Lexicographical Order
October 7, 2020 · 5 min · 892 words · Samir Paul
Product Price at a Given Date
October 7, 2020 · 3 min · 432 words · Samir Paul
Single-Row Keyboard
October 7, 2020 · 4 min · 701 words · Samir Paul
Design File System
October 7, 2020 · 8 min · 1542 words · Samir Paul
Minimum Cost to Connect Sticks
October 7, 2020 · 5 min · 1037 words · Samir Paul
Optimize Water Distribution in a Village
October 7, 2020 · 13 min · 2625 words · Samir Paul
Invalid Transactions
October 7, 2020 · 5 min · 978 words · Samir Paul
Compare Strings by Frequency of the Smallest Character
October 7, 2020 · 5 min · 940 words · Samir Paul
Remove Zero Sum Consecutive Nodes from Linked List
October 7, 2020 · 6 min · 1107 words · Samir Paul
Dinner Plate Stacks
October 7, 2020 · 18 min · 3805 words · Samir Paul
Immediate Food Delivery I
October 7, 2020 · 2 min · 304 words · Samir Paul
Immediate Food Delivery II
October 7, 2020 · 3 min · 506 words · Samir Paul
Prime Arrangements
October 7, 2020 · 4 min · 808 words · Samir Paul
Diet Plan Performance
October 7, 2020 · 7 min · 1427 words · Samir Paul
Can Make Palindrome from Substring
October 6, 2020 · 5 min · 1052 words · Samir Paul
Number of Valid Words for Each Puzzle
October 6, 2020 · 6 min · 1157 words · Samir Paul
Reformat Department Table
October 6, 2020 · 3 min · 443 words · Samir Paul
Count Substrings with Only One Distinct Letter
October 6, 2020 · 4 min · 824 words · Samir Paul
Before and After Puzzle
October 6, 2020 · 5 min · 876 words · Samir Paul
Shortest Distance to Target Color
October 6, 2020 · 6 min · 1116 words · Samir Paul
Maximum Number of Ones
October 6, 2020 · 4 min · 713 words · Samir Paul
Distance Between Bus Stops
October 6, 2020 · 3 min · 634 words · Samir Paul
Day of the Week
October 6, 2020 · 4 min · 796 words · Samir Paul
Maximum Subarray Sum with One Deletion
October 6, 2020 · 4 min · 835 words · Samir Paul
Make Array Strictly Increasing
October 6, 2020 · 8 min · 1564 words · Samir Paul
Design Bounded Blocking Queue
October 6, 2020 · 4 min · 795 words · Samir Paul
Maximum Number of Balloons
October 6, 2020 · 4 min · 741 words · Samir Paul
Reverse Substrings Between Each Pair of Parentheses
October 6, 2020 · 6 min · 1095 words · Samir Paul
K-Concatenation Maximum Sum
October 6, 2020 · 4 min · 773 words · Samir Paul
Critical Connections in a Network
October 6, 2020 · 5 min · 1009 words · Samir Paul
Monthly Transactions I
October 6, 2020 · 2 min · 327 words · Samir Paul
Tournament Winners
October 6, 2020 · 3 min · 484 words · Samir Paul
Fizz Buzz Multithreaded
October 6, 2020 · 4 min · 746 words · Samir Paul
How Many Apples Can You Put into the Basket
October 6, 2020 · 3 min · 464 words · Samir Paul
Minimum Knight Moves
October 6, 2020 · 12 min · 2549 words · Samir Paul
Find Smallest Common Element in All Rows
October 6, 2020 · 3 min · 439 words · Samir Paul
Minimum Time to Build Blocks
October 6, 2020 · 4 min · 816 words · Samir Paul
Minimum Absolute Difference
October 6, 2020 · 3 min · 612 words · Samir Paul
Ugly Number III
October 5, 2020 · 6 min · 1241 words · Samir Paul
Smallest String With Swaps
October 5, 2020 · 6 min · 1222 words · Samir Paul
Sort Items by Groups Respecting Dependencies
October 5, 2020 · 10 min · 1962 words · Samir Paul
Last Person to Fit in the Bus
October 5, 2020 · 3 min · 478 words · Samir Paul
Monthly Transactions II
October 5, 2020 · 3 min · 445 words · Samir Paul
Design Skiplist
October 5, 2020 · 9 min · 1750 words · Samir Paul
Unique Number of Occurrences
October 5, 2020 · 2 min · 374 words · Samir Paul
Get Equal Substrings Within Budget
October 5, 2020 · 8 min · 1547 words · Samir Paul
Remove All Adjacent Duplicates in String II
October 5, 2020 · 4 min · 788 words · Samir Paul
Minimum Moves to Reach Target with Rotations
October 5, 2020 · 12 min · 2494 words · Samir Paul
Queries Quality and Percentage
October 5, 2020 · 2 min · 380 words · Samir Paul
Team Scores in Football Tournament
October 5, 2020 · 4 min · 666 words · Samir Paul
Intersection of Three Sorted Arrays
October 5, 2020 · 4 min · 794 words · Samir Paul
Two Sum BSTs
October 5, 2020 · 6 min · 1116 words · Samir Paul
Stepping Numbers
October 5, 2020 · 4 min · 814 words · Samir Paul
Valid Palindrome III
October 5, 2020 · 5 min · 959 words · Samir Paul
Minimum Cost to Move Chips to The Same Position
October 5, 2020 · 3 min · 486 words · Samir Paul
Longest Arithmetic Subsequence of Given Difference
October 5, 2020 · 2 min · 421 words · Samir Paul
Path with Maximum Gold
October 5, 2020 · 6 min · 1154 words · Samir Paul
Count Vowels Permutation
October 5, 2020 · 12 min · 2543 words · Samir Paul
Split a String in Balanced Strings
October 5, 2020 · 3 min · 566 words · Samir Paul
Queens That Can Attack the King
October 5, 2020 · 5 min · 925 words · Samir Paul
Dice Roll Simulation
October 5, 2020 · 9 min · 1879 words · Samir Paul
Maximum Equal Frequency
October 5, 2020 · 5 min · 944 words · Samir Paul
Report Contiguous Dates
October 4, 2020 · 3 min · 515 words · Samir Paul
The Dining Philosophers
October 4, 2020 · 3 min · 495 words · Samir Paul
Airplane Seat Assignment Probability
October 4, 2020 · 4 min · 849 words · Samir Paul
Missing Number In Arithmetic Progression
October 4, 2020 · 3 min · 591 words · Samir Paul
Meeting Scheduler
October 4, 2020 · 5 min · 884 words · Samir Paul
Toss Strange Coins
October 4, 2020 · 6 min · 1082 words · Samir Paul
Divide Chocolate
October 4, 2020 · 5 min · 1000 words · Samir Paul
Check If It Is a Straight Line
October 4, 2020 · 2 min · 360 words · Samir Paul
Remove Sub-Folders from the Filesystem
October 4, 2020 · 8 min · 1660 words · Samir Paul
Replace the Substring for Balanced String
October 4, 2020 · 4 min · 818 words · Samir Paul
Maximum Profit in Job Scheduling
October 4, 2020 · 9 min · 1732 words · Samir Paul
Web Crawler
October 4, 2020 · 5 min · 864 words · Samir Paul
Find Positive Integer Solution for a Given Equation
October 4, 2020 · 11 min · 2146 words · Samir Paul
Circular Permutation in Binary Representation
October 4, 2020 · 5 min · 964 words · Samir Paul
Maximum Length of a Concatenated String with Unique Characters
October 4, 2020 · 4 min · 711 words · Samir Paul
Tiling a Rectangle with the Fewest Squares
October 4, 2020 · 14 min · 2914 words · Samir Paul
Number of Comments per Post
October 4, 2020 · 2 min · 373 words · Samir Paul
Web Crawler Multithreaded
October 4, 2020 · 3 min · 492 words · Samir Paul
Array Transformation
October 4, 2020 · 3 min · 633 words · Samir Paul
Design A Leaderboard
October 4, 2020 · 5 min · 1048 words · Samir Paul
Tree Diameter
October 4, 2020 · 5 min · 999 words · Samir Paul
Palindrome Removal
October 4, 2020 · 4 min · 794 words · Samir Paul
Minimum Swaps to Make Strings Equal
October 4, 2020 · 4 min · 763 words · Samir Paul
Count Number of Nice Subarrays
October 4, 2020 · 3 min · 550 words · Samir Paul
Minimum Remove to Make Valid Parentheses
October 3, 2020 · 5 min · 1052 words · Samir Paul
Check If It Is a Good Array
October 3, 2020 · 3 min · 556 words · Samir Paul
Average Selling Price
October 3, 2020 · 3 min · 473 words · Samir Paul
Cells with Odd Values in a Matrix
October 3, 2020 · 7 min · 1455 words · Samir Paul
Reconstruct a 2-Row Binary Matrix
October 3, 2020 · 5 min · 1012 words · Samir Paul
Number of Closed Islands
October 3, 2020 · 16 min · 3205 words · Samir Paul
Maximum Score Words Formed by Letters
October 3, 2020 · 5 min · 1038 words · Samir Paul
Encode Number
October 3, 2020 · 2 min · 226 words · Samir Paul
Smallest Common Region
October 3, 2020 · 3 min · 516 words · Samir Paul
Synonymous Sentences
October 3, 2020 · 8 min · 1704 words · Samir Paul
Handshakes That Don’t Cross
October 3, 2020 · 4 min · 723 words · Samir Paul
Shift 2D Grid
October 3, 2020 · 4 min · 724 words · Samir Paul
Find Elements in a Contaminated Binary Tree
October 3, 2020 · 5 min · 967 words · Samir Paul
Greatest Sum Divisible by Three
October 3, 2020 · 5 min · 1021 words · Samir Paul
Minimum Moves to Move a Box to Their Target Location
October 3, 2020 · 15 min · 3046 words · Samir Paul
Page Recommendations
October 3, 2020 · 3 min · 512 words · Samir Paul
Print Immutable Linked List in Reverse
October 3, 2020 · 4 min · 734 words · Samir Paul
Minimum Time Visiting All Points
October 3, 2020 · 4 min · 710 words · Samir Paul
Count Servers that Communicate
October 3, 2020 · 4 min · 788 words · Samir Paul
Search Suggestions System
October 3, 2020 · 6 min · 1256 words · Samir Paul
Number of Ways to Stay in the Same Place After Some Steps
October 3, 2020 · 5 min · 1058 words · Samir Paul
All People Report to the Given Manager
October 3, 2020 · 3 min · 448 words · Samir Paul
Hexspeak
October 3, 2020 · 3 min · 433 words · Samir Paul
Remove Interval
October 3, 2020 · 4 min · 656 words · Samir Paul
Delete Tree Nodes
October 2, 2020 · 4 min · 668 words · Samir Paul
Number of Ships in a Rectangle
October 2, 2020 · 6 min · 1254 words · Samir Paul
Find Winner on a Tic Tac Toe Game
October 2, 2020 · 5 min · 1006 words · Samir Paul
Number of Burgers with No Waste of Ingredients
October 2, 2020 · 3 min · 626 words · Samir Paul
Count Square Submatrices with All Ones
October 2, 2020 · 3 min · 542 words · Samir Paul
Palindrome Partitioning III
October 2, 2020 · 4 min · 796 words · Samir Paul
Traffic Light Controlled Intersection
October 2, 2020 · 5 min · 921 words · Samir Paul
Students and Examinations
October 2, 2020 · 3 min · 627 words · Samir Paul
Subtract the Product and Sum of Digits of an Integer
October 2, 2020 · 4 min · 662 words · Samir Paul
Group the People Given the Group Size They Belong To
October 2, 2020 · 4 min · 771 words · Samir Paul
Find the Smallest Divisor Given a Threshold
October 2, 2020 · 5 min · 962 words · Samir Paul
Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
October 2, 2020 · 6 min · 1127 words · Samir Paul
Find the Start and End Number of Continuous Ranges
October 2, 2020 · 3 min · 431 words · Samir Paul
Iterator for Combination
October 2, 2020 · 7 min · 1470 words · Samir Paul
Element Appearing More Than 25% In Sorted Array
October 2, 2020 · 2 min · 363 words · Samir Paul
Remove Covered Intervals
October 2, 2020 · 2 min · 385 words · Samir Paul
Minimum Falling Path Sum II
October 2, 2020 · 5 min · 1027 words · Samir Paul
Convert Binary Number in a Linked List to Integer
October 2, 2020 · 5 min · 915 words · Samir Paul
Sequential Digits
October 2, 2020 · 3 min · 451 words · Samir Paul
Maximum Side Length of a Square with Sum Less than or Equal to Threshold
October 2, 2020 · 6 min · 1091 words · Samir Paul
Shortest Path in a Grid with Obstacles Elimination
October 2, 2020 · 5 min · 1061 words · Samir Paul
Weather Type in Each Country
October 2, 2020 · 3 min · 563 words · Samir Paul
Find Numbers with Even Number of Digits
October 2, 2020 · 2 min · 311 words · Samir Paul
Divide Array in Sets of K Consecutive Numbers
October 2, 2020 · 5 min · 880 words · Samir Paul
Maximum Number of Occurrences of a Substring
October 1, 2020 · 3 min · 475 words · Samir Paul
Maximum Candies You Can Get from Boxes
October 1, 2020 · 5 min · 1004 words · Samir Paul
Replace Elements with Greatest Element on Right Side
October 1, 2020 · 2 min · 280 words · Samir Paul
Sum of Mutated Array Closest to Target
October 1, 2020 · 4 min · 647 words · Samir Paul
Number of Paths with Max Score
October 1, 2020 · 5 min · 1065 words · Samir Paul
Deepest Leaves Sum
October 1, 2020 · 9 min · 1766 words · Samir Paul
Find the Team Size
October 1, 2020 · 2 min · 377 words · Samir Paul
Find N Unique Integers Sum up to Zero
October 1, 2020 · 3 min · 509 words · Samir Paul
All Elements in Two Binary Search Trees
October 1, 2020 · 7 min · 1283 words · Samir Paul
Jump Game III
October 1, 2020 · 3 min · 612 words · Samir Paul
Verbal Arithmetic Puzzle
October 1, 2020 · 2 min · 240 words · Samir Paul
Running Total for Different Genders
October 1, 2020 · 3 min · 520 words · Samir Paul
Decrypt String from Alphabet to Integer Mapping
October 1, 2020 · 3 min · 579 words · Samir Paul
XOR Queries of a Subarray
October 1, 2020 · 3 min · 609 words · Samir Paul
Get Watched Videos by Your Friends
October 1, 2020 · 3 min · 587 words · Samir Paul
Minimum Insertion Steps to Make a String Palindrome
October 1, 2020 · 7 min · 1279 words · Samir Paul
Decompress Run-Length Encoded List
October 1, 2020 · 3 min · 591 words · Samir Paul
Matrix Block Sum
October 1, 2020 · 4 min · 836 words · Samir Paul
Sum of Nodes with Even-Valued Grandparent
October 1, 2020 · 3 min · 633 words · Samir Paul
Distinct Echo Substrings
October 1, 2020 · 5 min · 1010 words · Samir Paul
Convert Integer to the Sum of Two No-Zero Integers
October 1, 2020 · 3 min · 633 words · Samir Paul
Minimum Flips to Make a OR b Equal to c
October 1, 2020 · 3 min · 457 words · Samir Paul
Number of Operations to Make Network Connected
October 1, 2020 · 4 min · 646 words · Samir Paul
Minimum Distance to Type a Word Using Two Fingers
October 1, 2020 · 6 min · 1278 words · Samir Paul