Skip to content

LeetCode Ruby Solutions

Notifications You must be signed in to change notification settings

remy727/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Algorithms

#TitleSolutionDifficulty
1Two SumRubyEasy
2Add Two NumbersRubyMedium
3Longest Substring Without Repeating CharactersRubyMedium
4Median of Two Sorted ArraysRubyHard
5Longest Palindromic SubstringRubyMedium
6Verifying an Alien DictionaryRubyMedium
7Reverse IntegerRubyMedium
8String to Integer (atoi)RubyMedium
9Palindrome NumberRubyEasy
10Regular Expression MatchingRubyHard
11Container With Most WaterRubyMedium
12Integer to RomanRubyMedium
13Roman to IntegerRubyEasy
14Longest Common PrefixRubyEasy
153SumRubyMedium
163Sum ClosestRubyMedium
17Letter Combinations of a Phone NumberRubyMedium
184SumRubyMedium
19Remove Nth Node From End of ListRubyMedium
20Valid ParenthesesRubyEasy
21Merge Two Sorted ListsRubyEasy
22Generate ParenthesesRubyMedium
23Merge k Sorted ListsRubyHard
24Swap Nodes in PairsRubyMedium
25Reverse Nodes in k-GroupRubyHard
26Remove Duplicates from Sorted ArrayRubyEasy
27Remove ElementRubyEasy
28Find the Index of the First Occurrence in a StringRubyMedium
30Substring with Concatenation of All WordsRubyHard
33Search in Rotated Sorted ArrayRubyMedium
34Find First and Last Position of Element in Sorted ArrayRubyMedium
35Search Insert PositionRubyEasy
36Valid SudokuRubyMedium
39Combination SumRubyMedium
40Combination Sum IIRubyMedium
42Trapping Rain WaterRubyHard
43Multiply StringsRubyMedium
45Jump Game IIRubyMedium
46PermutationsRubyMedium
48Rotate ImageRubyMedium
49Group AnagramsRubyMedium
50Pow(x, n)RubyMedium
52N-Queens IIRubyHard
53Maximum SubarrayRubyMedium
54Spiral MatrixRubyMedium
55Jump GameRubyMedium
58Length of Last WordRubyEasy
59Spiral Matrix IIRubyMedium
61Rotate ListRubyMedium
62Unique PathsRubyMedium
63Unique Paths IIRubyMedium
64Minimum Path SumRubyMedium
66Plus OneRubyEasy
67Add BinaryRubyPython3Easy
68Text JustificationRubyHard
69Sqrt(x)RubyEasy
70Climbing StairsRubyEasy
71Climbing StairsRubyMedium
72Edit DistanceRubyHard
73Set Matrix ZeroesRubyMedium
74Search a 2D MatrixRubyMedium
76Minimum Window SubstringRubyHard
77CombinationsRubyMedium
79Word SearchRubyMedium
80Remove Duplicates from Sorted Array IIRubyMedium
81Search in Rotated Sorted Array IIRubyMedium
82Remove Duplicates from Sorted List IIRubyMedium
86Partition ListRubyMedium
87Scramble StringRubyHard
88Merge Sorted ArrayRubyEasy
91Decode WaysRubyMedium
92Reverse Linked List IIRubyMedium
94Binary Tree Inorder TraversalRubyEasy
95Unique Binary Search Trees IIRubyMedium
97Interleaving StringRubyMedium
98Validate Binary Search TreeRubyMedium
100Same TreeRubyEasy
101Symmetric TreeRubyEasy
102Binary Tree Level Order TraversalRubyMedium
103Binary Tree Zigzag Level Order TraversalRubyMedium
104Maximum Depth of Binary TreeRubyPython3Easy
105Construct Binary Tree from Preorder and Inorder TraversalRubyMedium
106Construct Binary Tree from Inorder and Postorder TraversalRubyMedium
108Convert Sorted Array to Binary Search TreeRubyEasy
109Convert Sorted List to Binary Search TreeRubyMedium
110Balanced Binary TreeRubyEasy
111Minimum Depth of Binary TreeRubyEasy
112Path SumRubyEasy
113Path Sum IIRubyMedium
114Flatten Binary Tree to Linked ListRubyMedium
117Populating Next Right Pointers in Each Node IIRubyMedium
118Pascal's TriangleRubyEasy
119Pascal's Triangle IIRubyEasy
120TriangleRubyMedium
121Best Time to Buy and Sell StockRubyEasy
122Best Time to Buy and Sell Stock IIRubyMedium
123Best Time to Buy and Sell Stock IIIRubyHard
124Binary Tree Maximum Path SumRubyHard
125Valid PalindromeRubyEasy
127Word LadderRubyHard
128Longest Consecutive SequenceRubyMedium
129Sum Root to Leaf NumbersRubyMedium
130Surrounded RegionsRubyMedium
133Clone GraphRubyMedium
134Gas StationRubyEasy
135CandyRubyHard
136Single NumberRubyEasy
137Single Number IIRubyMedium
138Copy List with Random PointerRubyMedium
139Word BreakRubyMedium
141Linked List CycleRubyEasy
142Linked List Cycle IIRubyMedium
146LRU CacheRubyMedium
148Sort ListRubyMedium
149Max Points on a LineRubyHard
150Evaluate Reverse Polish NotationRubyMedium
151Reverse Words in a StringRubyMedium
152Maximum Product SubarrayRubyMedium
153Find Minimum in Rotated Sorted ArrayRubyMedium
155Min StackRubyMedium
162Find Peak ElementRubyMedium
167Two Sum II - Input Array Is SortedRubyMedium
168Excel Sheet Column TitleRubyEasy
169Majority ElementRubyEasy
172Factorial Trailing ZeroesRubyMedium
173Binary Search Tree IteratorRubyMedium
188Best Time to Buy and Sell Stock IVRubyHard
189Rotate ArrayRubyMedium
190Reverse BitsRubyEasy
191Number of 1 BitsRubyEasy
198House RobberRubyMedium
199Binary Tree Right Side ViewRubyMedium
200Number of IslandsRubyMedium
201Bitwise AND of Numbers RangeRubyMedium
202Happy NumberRubyEasy
205Isomorphic StringsRubyEasy
206Reverse Linked ListRubyEasy
207Course ScheduleRubyMedium
208Implement Trie (Prefix Tree)RubyMedium
209Minimum Size Subarray SumRubyMedium
210Course Schedule IIRubyMedium
211Design Add and Search Words Data StructureRubyMedium
212Word Search IIRubyHard
215Kth Largest Element in an ArrayRubyMedium
216Combination Sum IIIRubyMedium
219Contains Duplicate IIRubyEasy
221Maximal SquareRubyMedium
222Count Complete Tree NodesRubyMedium
224Basic CalculatorRubyHard
225Implement Stack using QueuesRubyEasy
226Invert Binary TreeRubyEasy
227Basic Calculator IIRubyMedium
228Summary RangesRubyEasy
229Majority Element IIRubyMedium
230Kth Smallest Element in a BSTRubyMedium
232Implement Queue using StacksRubyEasy
234Palindrome Linked ListRubyEasy
235Lowest Common Ancestor of a Binary Search TreeRubyMedium
236Lowest Common Ancestor of a Binary TreeRubyMedium
238Product of Array Except SelfRubyMedium
239Sliding Window MaximumRubyHard
242Valid AnagramRubyEasy
258Add DigitsRubyEasy
274H-IndexRubyMedium
278First Bad VersionRubyEasy
283Move ZeroesRubyEasy
287Find the Duplicate NumberRubyMedium
289Game of LifeRubyMedium
290Word PatternRubyEasy
295Find Median from Data StreamRubyHard
299Bulls and CowsRubyPython3Medium
300Longest Increasing SubsequenceRubyMedium
316Remove Duplicate LettersRubyMedium
319Bulb SwitcherRubyMedium
322Coin ChangeRubyMedium
328Odd Even Linked ListRubyMedium
332Reconstruct ItineraryRubyHard
334Increasing Triplet SubsequenceRubyMedium
338Counting BitsRubyEasy
341Flatten Nested List IteratorRubyMedium
342Power of FourRubyEasy
343Integer BreakRubyMedium
344Reverse StringRubyEasy
345Reverse Vowels of a StringRubyEasy
347Top K Frequent ElementsRubyMedium
373Find K Pairs with Smallest SumsRubyMedium
374Guess Number Higher or LowerRubyEasy
377Combination Sum IVRubyMedium
380Insert Delete GetRandom O(1)RubyMedium
382Linked List Random NodeRubyMedium
383Ransom NoteRubyEasy
387First Unique Character in a StringRubyEasy
389Find the DifferenceRubyEasy
392Is SubsequenceRubyEasy
394Decode StringRubyMedium
399Evaluate DivisionRubyMedium
403Frog JumpRubyHard
409Longest PalindromeRubyEasy
416Partition Equal Subset SumRubyMedium
417Pacific Atlantic Water FlowRubyMedium
424Longest Repeating Character ReplacementRubyMedium
427Construct Quad TreeRubyMedium
432All O`one Data StructureRubyHard
433Minimum Genetic MutationRubyMedium
435Non-overlapping IntervalsRubyMedium
437Path Sum IIIRubyMedium
438Find All Anagrams in a StringRubyMedium
443String CompressionRubyPython3Medium
445Add Two Numbers IIRubyMedium
450Delete Node in a BSTRubyMedium
452Minimum Number of Arrows to Burst BalloonsRubyMedium
455Assign CookiesRubyEasy
456132 PatternRubyMedium
458Poor PigsRubyHard
459Repeated Substring PatternRubyEasy
486Predict the WinnerRubyMedium
501Find Mode in Binary Search TreeRubyEasy
502IPORubyPython3Hard
509Fibonacci NumberRubyEasy
515Find Largest Value in Each Tree RowRubyMedium
516Longest Palindromic SubsequenceRubyMedium
518Coin Change IIRubyMedium
530Minimum Absolute Difference in BSTRubyEasy
539Minimum Time DifferenceRubyMedium
540Single Element in a Sorted ArrayRubyMedium
54201 MatrixRubyMedium
543Diameter of Binary TreeRubyEasy
547Number of ProvincesRubyMedium
557Reverse Words in a String IIIRubyEasy
567Permutation in StringRubyMedium
589N-ary Tree Preorder TraversalRubyEasy
605Can Place FlowersRubyEasy
606Construct String from Binary TreeRubyEasy
621Task SchedulerRubyMedium
622Design Circular QueueRubyMedium
624Maximum Distance in ArraysRubyMedium
637Average of Levels in Binary TreeRubyEasy
643Maximum Average Subarray IRubyEasy
646Maximum Length of Pair ChainRubyMedium
649Dota2 SenateRubyMedium
652Find Duplicate SubtreesRubyMedium
661Image SmootherRubyEasy
662Maximum Width of Binary TreeRubyMedium
664Strange PrinterRubyHard
670Maximum SwapRubyMedium
673Number of Longest Increasing SubsequenceRubyMedium
688Knight Probability in ChessboardRubyMedium
692Top K Frequent WordsRubyMedium
700Search in a Binary Search TreeRubyEasy
703Kth Largest Element in a StreamRubyEasy
704Binary SearchRubyEasy
705Design HashSetRubyEasy
706Design HashMapRubyEasy
712Minimum ASCII Delete Sum for Two StringsRubyMedium
714Best Time to Buy and Sell Stock with TransactionRubyMedium
724Find Pivot IndexRubyEasy
725Split Linked List in PartsRubyMedium
733Flood FillRubyEasy
735Asteroid CollisionRubyMedium
739Daily TemperaturesRubyMedium
744Find Smallest Letter Greater Than TargetRubyEasy
746Min Cost Climbing StairsRubyEasy
767Reorganize StringRubyMedium
773Sliding PuzzleRubyHard
779K-th Symbol in GrammarRubyMedium
783Minimum Distance Between BST NodesRubyPython3Easy
785Is Graph Bipartite?RubyMedium
790Domino and Tromino TilingRubyMedium
796Rotate StringRubyEasy
799Champagne TowerRubyMedium
802Find Eventual Safe StatesRubyMedium
808Soup ServingsRubyMedium
815Bus RoutesRubyHard
823Binary Trees With FactorsRubyMedium
837New 21 GameRubyMedium
839Similar String GroupsRubyHard
841Backspace String CompareRubyMedium
844Backspace String CompareRubyEasy
847Shortest Path Visiting All NodesRubyHard
852Peak Index in a Mountain ArrayRubyMedium
859Buddy StringsRubyEasy
862Shortest Subarray with Sum at Least KRubyHard
863All Nodes Distance K in Binary TreeRubyMedium
864Backspace String CompareRubyHard
867Transpose MatrixRubyEasy
872Leaf-Similar TreesRubyMedium
875Koko Eating BananasRubyPython3Medium
876Middle of the Linked ListRubyEasy
879Profitable SchemesRubyHard
880Decoded String at IndexRubyMedium
881Middle of the Linked ListRubyMedium
884Uncommon Words from Two SentencesRubyEasy
894All Possible Full Binary TreesRubyMedium
896Monotonic ArrayRubyEasy
901Online Stock SpanRubyMedium
904Fruit Into BasketsRubyMedium
905Sort Array By ParityRubyEasy
909Snakes and LaddersRubyMedium
912Sort an ArrayRubyMedium
918Maximum Sum Circular SubarrayRubyMedium
920Number of Music PlaylistsRubyHard
933Number of Recent CallsRubyEasy
934Shortest BridgeRubyMedium
935Knight DialerRubyMedium
946Validate Stack SequencesRubyMedium
947Most Stones Removed with Same Row or ColumnRubyMedium
953Verifying an Alien DictionaryRubyEasy
956Tallest BillboardRubyHard
958Check Completeness of a Binary TreeRubyMedium
983Minimum Cost For TicketsRubyMedium
989Add to Array-Form of IntegerRubyEasy
990Satisfiability of Equality EquationsRubyMedium
994Rotting OrangesRubyMedium
1004Max Consecutive Ones IIIRubyMedium
1011Capacity To Ship Packages Within D DaysRubyMedium
1020Number of EnclavesRubyMedium
1027Longest Arithmetic SubsequenceRubyMedium
1035Uncrossed LinesRubyMedium
1046Last Stone WeightRubyEasy
1048Longest String ChainRubyMedium
1071Greatest Common Divisor of StringsRubyEasy
1072Flip Columns For Maximum Number of Equal RowsRubyMedium
1091Shortest Path in Binary MatrixRubyMedium
1106Parsing A Boolean ExpressionRubyHard
1125Smallest Sufficient TeamRubyHard
1129Shortest Path with Alternating ColorsRubyMedium
1137N-th Tribonacci NumberRubyEasy
1140Stone Game IIRubyMedium
1143Longest Common SubsequenceRubyMedium
1146Snapshot ArrayRubyMedium
1155Number of Dice Rolls With Target SumRubyMedium
1160Find Words That Can Be Formed by CharactersRubyEasy
1161Maximum Level Sum of a Binary TreeRubyMedium
1162As Far from Land as PossibleRubyMedium
1187Make Array Strictly IncreasingRubyHard
1203Sort Items by Groups Respecting DependenciesRubyHard
1207Unique Number of OccurrencesRubyEasy
1218Longest Arithmetic Subsequence of Given DifferenceRubyMedium
1220Count Vowels PermutationRubyHard
1232Check If It Is a Straight LineRubyEasy
1233Remove Sub-Folders from the FilesystemRubyMedium
1239Maximum Length of a Concatenated String with Unique CharactersRubyMedium
1254Number of Closed IslandsRubyMedium
1266Minimum Time Visiting All PointsRubyEasy
1268Search Suggestions SystemRubyMedium
1269Number of Ways to Stay in the Same Place After Some StepsRubyHard
1277Count Square Submatrices with All OnesRubyMedium
1282Group the People Given the Group Size They Belong ToRubyMedium
1287Element Appearing More Than 25% In Sorted ArrayRubyEasy
1318Minimum Flips to Make a OR b Equal to cRubyMedium
1319Number of Operations to Make Network ConnectedRubyMedium
1326Minimum Number of Taps to Open to Water a GardenRubyHard
1337The K Weakest Rows in a MatrixRubyEasy
1351Count Negative Numbers in a Sorted MatrixRubyEasy
1359Count All Valid Pickup and Delivery OptionsRubyHard
1372Longest ZigZag Path in a Binary TreeRubyMedium
1345Jump Game IVRubyHard
1361Validate Binary Tree NodesRubyMedium
1371Find the Longest Substring Containing Vowels in Even CountsRubyMedium
1376Time Needed to Inform All EmployeesRubyMedium
1381Design a Stack With Increment OperationRubyMedium
1396Design Underground SystemRubyMedium
1402Reducing DishesRubyHard
1405Longest Happy StringRubyMedium
1406Stone Game IIIRubyHard
1416Restore The ArrayRubyHard
1420Build Array Where You Can Find The Maximum Exactly K ComparisonsRubyHard
1422Maximum Score After Splitting a StringRubyEasy
1424Diagonal Traverse IIRubyMedium
1425Constrained Subsequence SumRubyHard
1431Kids With the Greatest Number of CandiesRubyEasy
14361436. Destination CityRubyEasy
1441Build an Array With Stack OperationsRubyMedium
1444Number of Ways of Cutting a PizzaRubyPython3Hard
1448Count Good Nodes in Binary TreeRubyMedium
1456Maximum Number of Vowels in a Substring of Given LengthRubyMedium
1457Pseudo-Palindromic Paths in a Binary TreeRubyMedium
1458Max Dot Product of Two SubsequencesRubyHard
1464Maximum Product of Two Elements in an ArrayRubyEasy
1466Reorder Routes to Make All Paths Lead to the City ZeroRubyMedium
1470Shuffle the ArrayRubyEasy
1472Design Browser HistoryRubyMedium
1480Running Sum of 1d ArrayRubyEasy
1489Find Critical and Pseudo-Critical Edges in Minimum Spanning TreeRubyHard
1491Average Salary Excluding the Minimum and Maximum SalaryRubyEasy
1493Longest Subarray of 1's After Deleting One ElementRubyMedium
1498Number of Subsequences That Satisfy the Given Sum ConditionRubyMedium
1502Can Make Arithmetic Progression From SequenceRubyEasy
1503Last Moment Before All Ants Fall Out of a PlankRubyMedium
1508Range Sum of Sorted Subarray SumsRubyMedium
1514Path with Maximum ProbabilityRubyMedium
1523Count Odd Numbers in an Interval RangeRubyEasy
1535Find the Winner of an Array GameRubyMedium
1539Kth Missing Positive NumberRubyEasy
1545Find Kth Bit in Nth Binary StringRubyMedium
1547Minimum Cost to Cut a StickRubyHard
1557Minimum Number of Vertices to Reach All NodesRubyMedium
1561Maximum Number of Coins You Can GetRubyMedium
1569Number of Ways to Reorder Array to Get Same BSTRubyHard
1572Matrix Diagonal SumRubyEasy
1574Shortest Subarray to be Removed to Make Array SortedRubyMedium
1575Count All Possible RoutesRubyHard
1579Remove Max Number of Edges to Keep Graph Fully TraversableRubyHard
1584Min Cost to Connect All PointsRubyMedium
1601Maximum Number of Achievable Transfer RequestsRubyHard
1603Design Parking SystemRubyEasy
1611Minimum One Bit Operations to Make Integers ZeroRubyHard
1615Maximal Network RankRubyMedium
1630Arithmetic SubarraysRubyMedium
1631Path With Minimum EffortRubyMedium
1637Widest Vertical Area Between Two Points Containing No PointsRubyMedium
1639Number of Ways to Form a Target String Given a DictionaryRubyHard
1647Minimum Deletions to Make Character Frequencies UniqueRubyMedium
1652Defuse the BombRubyEasy
1657Determine if Two Strings Are CloseRubyMedium
1658Minimum Operations to Reduce X to ZeroRubyMedium
1662Check If Two String Arrays are EquivalentRubyEasy
1671Minimum Number of Removals to Make Mountain ArrayRubyHard
1675Minimize Deviation in ArrayRubyHard
1679Max Number of K-Sum PairsRubyMedium
1680Concatenation of Consecutive Binary NumbersRubyMedium
1685Sum of Absolute Differences in a Sorted ArrayRubyMedium
1688Count of Matches in TournamentRubyEasy
1697Checking Existence of Edge Length Limited PathsRubyHard
1706Where Will the Ball FallRubyMedium
1716Calculate Money in Leetcode BankRubyEasy
1721Swapping Nodes in a Linked ListRubyMedium
1727Largest Submatrix With RearrangementsRubyMedium
1732Find the Highest AltitudeRubyEasy
1743Restore the Array From Adjacent PairsRubyMedium
1751Maximum Number of Events That Can Be Attended IIRubyHard
1759Count Number of Homogenous SubstringsRubyMedium
1768Merge Strings AlternatelyRubyEasy
1793Maximum Score of a Good SubarrayRubyHard
1799Maximize Score After N OperationsRubyHard
1802Maximum Value at a Given Index in a Bounded ArrayRubyMedium
1814Count Nice Pairs in an ArrayRubyMedium
1822Sign of the Product of an ArrayRubyEasy
1829Maximum XOR for Each QueryRubyMedium
1838Frequency of the Most Frequent ElementRubyMedium
1845Seat Reservation ManagerRubyMedium
1846Maximum Element After Decreasing and RearrangingRubyMedium
1857Largest Color Value in a Directed GraphRubyHard
1861Rotating the BoxRubyMedium
1870Minimum Speed to Arrive on TimeRubyMedium
1877Minimize Maximum Pair Sum in ArrayRubyMedium
1887Minimize Maximum Pair Sum in ArrayRubyMedium
1894Find the Student that Will Replace the ChalkRubyMedium
1903Largest Odd Number in StringRubyEasy
1921Eliminate Maximum Number of MonstersRubyMedium
1926Nearest Exit from Entrance in MazeRubyMedium
1930Unique Length-3 Palindromic SubsequencesRubyMedium
1964Find the Longest Valid Obstacle Course at Each PositionRubyHard
1970Last Day Where You Can Still CrossRubyHard
1975Maximum Matrix SumRubyMedium
1980Find Unique Binary StringRubyMedium
2009Minimum Number of Operations to Make Array ContinuousRubyHard
2024Maximize the Confusion of an ExamRubyMedium
2044Count Number of Maximum Bitwise-OR SubsetsRubyMedium
2050Parallel Courses IIIRubyHard
2064Minimized Maximum of Products Distributed to Any StoreRubyMedium
2070Most Beautiful Item for Each QueryRubyMedium
2090K Radius Subarray AveragesRubyMedium
2095Delete the Middle Node of a Linked ListRubyMedium
2101Detonate the Maximum BombsRubyMedium
2130Maximum Twin Sum of a Linked ListRubyMedium
2131Longest Palindrome by Concatenating Two Letter WordsRubyMedium
2140Solving Questions With BrainpowerRubyMedium
2141Maximum Running Time of N ComputersRubyHard
2147Number of Ways to Divide a Long CorridorRubyHard
2187Minimum Time to Complete TripsRubyPython3Medium
2215Find the Difference of Two ArraysRubyEasy
2218Maximum Value of K Coins From PilesRubyHard
2251Number of Flowers in Full BloomRubyHard
2257Count Unguarded Cells in the GridRubyMedium
2264Largest 3-Same-Digit Number in StringRubyEasy
2265Count Nodes Equal to Average of SubtreeRubyMedium
2272Substring With Largest VarianceRubyHard
2275Largest Combination With Bitwise AND Greater Than ZeroRubyMedium
2300Successful Pairs of Spells and PotionsRubyMedium
2305Fair Distribution of CookiesRubyMedium
2316Count Unreachable Pairs of Nodes in an Undirected GraphRubyMedium
2328Number of Increasing Paths in a GridRubyHard
2336Smallest Number in Infinite SetRubyMedium
2348Number of Zero-Filled SubarraysRubyMedium
2352Equal Row and Column PairsRubyMedium
2353Design a Food Rating SystemRubyMedium
2360Longest Cycle in a GraphRubyHard
2366Minimum Replacements to Sort the ArrayRubyHard
2369Check if There is a Valid Partition For The ArrayRubyMedium
2390Removing Stars From a StringRubyMedium
2391Minimum Amount of Time to Collect GarbageRubyMedium
2405Count Days Spent TogetherRubyMedium
2409Count Days Spent TogetherRubyEasy
2413Smallest Even MultipleRubyEasy
2433Find The Original Array of Prefix XorRubyMedium
2439Minimize Maximum of ArrayRubyMedium
2444Count Subarrays With Fixed BoundsRubyHard
2448Minimum Cost to Make Array EqualRubyHard
2458Height of Binary Tree After Subtree Removal QueriesRubyHard
2461Maximum Sum of Distinct Subarrays With Length KRubyMedium
2462Total Cost to Hire K WorkersPython3Medium
2463Minimum Total Distance TraveledRubyHard
2466Count Ways To Build Good StringsRubyMedium
2477Minimum Fuel Cost to Report to the CapitalRubyMedium
2483Minimum Penalty for a ShopRubyMedium
2490Circular SentenceRubyEasy
2492Minimum Score of a Path Between Two CitiesRubyMedium
2501Longest Square Streak in an ArrayRubyMedium
2516Take K of Each Character From Left and RightRubyMedium
2542Maximum Subsequence ScoreRubyMedium
2551Put Marbles in BagsRubyHard
2563Count the Number of Fair PairsRubyMedium
2583Kth Largest Sum in a Binary TreeRubyMedium
2595Number of Even and Odd BitsRubyEasy
2601Prime Subtraction OperationRubyMedium
2616Minimize the Maximum Difference of PairsRubyMedium
2641Cousins in Binary Tree IIRubyMedium
2642Design Graph With Shortest Path CalculatorRubyHard
2684Maximum Number of Moves in a GridRubyMedium
2696Minimum String Length After Removing SubstringsRubyEasy
2697Lexicographically Smallest PalindromeRubyEasy
2706Buy Two ChocolatesRubyEasy
2707Extra Characters in a StringRubyMedium
2742Painting the WallsRubyHard
2785Sort Vowels in a StringRubyMedium
2842Difference Between Ones and Zeros in Row and ColumnRubyMedium
2849Determine if a Cell Is Reachable at a Given TimeRubyMedium
2924Find Champion IIRubyMedium
2966Divide Array Into Arrays With Max DifferenceRubyMedium
3011Find if Array Can Be SortedRubyMedium
3097Shortest Subarray With OR At Least K IIRubyMedium
3163String Compression IIIRubyMedium
3243Shortest Distance After Road Addition Queries IRubyMedium
3254Find the Power of K-Size Subarrays IRubyMedium

Database

#TitleSolutionDifficulty
175Combine Two TablesMySQLEasy
181Employees Earning More Than Their ManagersMySQLEasy
182Duplicate EmailsMySQLEasy
183Customers Who Never OrderMySQLEasy
196Delete Duplicate EmailsMySQLEasy
197Rising TemperatureMySQLEasy
550Game Play Analysis IVMySQLMedium
570Managers with at Least 5 Direct ReportsMySQLMedium
577Employee BonusMySQLEasy
584Find Customer RefereeMySQLEasy
595Big CountriesMySQLEasy
620Not Boring MoviesMySQLEasy
1068Product Sales Analysis IRubyEasy
1075Project Employees IRubyEasy
1148Article Views IMySQLEasy
1174Immediate Food Delivery IIMySQLMedium
1193Monthly Transactions IMySQLMedium
1211Queries Quality and PercentageMySQLEasy
1251Average Selling PriceMySQLEasy
1280Students and ExaminationsMySQLEasy
1378Replace Employee ID With The Unique IdentifierMySQLEasy
1581Customer Who Visited but Did Not Make Any TransactionsMySQLEasy
1633Percentage of Users Attended a ContestMySQLEasy
1661Average Time of Process per MachineMySQLEasy
1683Invalid TweetsMySQLEasy
1757Recyclable and Low Fat ProductsMySQLEasy
1934Confirmation RateMySQLMedium
2356Confirmation RateMySQLEasy

Shell

#TitleSolutionDifficulty
192Word FrequencyShellMedium
193Valid Phone NumbersShellEasy
194Transpose FileShellMedium
195Tenth LineShellEasy
close