Commit Graph

18 Commits

Author SHA1 Message Date
ktkovachev
c7048b8b19
Solve 1700. Number of Students Unable to Eat Lunch
Using a deque to improve the speed of removing from the left side of the queue and rotating students to the back of the queue (from O(n) to O(1) amortized).
2024-04-08 16:04:43 +01:00
Kiril Kovachev
98b2830568 Add newline to 2778 solution 2024-03-08 21:05:31 +00:00
Kiril Kovachev
4919cb9540 Solve 944. Delete Columns to Make Sorted 2024-03-08 21:05:02 +00:00
Kiril Kovachev
1d06cbd973 Solve 2778. Sum of Squares of Special Elements in Rust 2024-03-08 21:04:44 +00:00
Kiril Kovachev
f54fe40496 Solve 1287 Element Appearing More Than 25% in Sorted Array 2024-03-08 21:04:16 +00:00
Kiril Kovachev
59064dd981 Solve 2778. Sum of Squares of Special Elements 2024-03-08 20:09:29 +00:00
Kiril Kovachev
20757a2bf2 Solve 1752. Check if Array is Sorted and Rotated 2024-03-08 20:09:12 +00:00
Kiril Kovachev
cdcff5d91d Solve 108. Convert Sorted Array to Binary Search Tree 2024-03-08 20:08:51 +00:00
Kiril Kovachev
75ef39813b Solve 279. Perfect Squares 2024-03-08 19:25:59 +00:00
Kiril Kovachev
9a3e4a94c6 Solve 88. Merge Sorted Array 2024-03-08 19:02:46 +00:00
Kiril Kovachev
c4a613dd84 Solve 977 Squares of a Sorted Array 2024-03-08 18:39:18 +00:00
Kiril Kovachev
30e48785a8 Add comment to 28. Find the Index of the First Occurrence in a String 2024-03-08 17:27:52 +00:00
Kiril Kovachev
127c2a32f4 Solved 28. Find the Index of the First Occurrence in a String 2024-03-08 17:21:24 +00:00
Kiril Kovachev
707e68cf0a Add Remove Element 2024-03-08 17:14:04 +00:00
Kiril Kovachev
046a2c87e9 Return length k in problem 26 2024-03-08 16:56:44 +00:00
Kiril Kovachev
51274d17c2 Make sure files end in a newline 2024-03-08 16:52:26 +00:00
Kiril Kovachev
8d4606ab95 Solve 26. Remove Duplicates from Sorted Array 2024-03-08 16:51:55 +00:00
Kiril Kovachev
ed40cc2fd1 Add solutions 2024-03-08 16:42:50 +00:00