Skip to content

Commit cefb524

Browse files
committedFeb 4, 2025
Improved racket
1 parent de3e80e commit cefb524

File tree

35 files changed

+0
-148
lines changed

35 files changed

+0
-148
lines changed
 

‎src/main/racket/g0001_0100/s0001_two_sum/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ You can return the answer in any order.
4343
## Solution
4444

4545
```racket
46-
; #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table
47-
; #Data_Structure_I_Day_2_Array #Level_1_Day_13_Hashmap #Udemy_Arrays #Big_O_Time_O(n)_Space_O(n)
48-
; #AI_can_be_used_to_solve_the_task #2025_01_28_Time_0_(100.00%)_Space_102.07_(45.83%)
49-
5046
(define (two-sum-iter nums target hash index)
5147
(cond
5248
((null? nums) '())

‎src/main/racket/g0001_0100/s0002_add_two_numbers/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ You may assume the two numbers do not contain any leading zero, except the numbe
4040
## Solution
4141

4242
```racket
43-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Math #Linked_List #Recursion
44-
; #Data_Structure_II_Day_10_Linked_List #Programming_Skills_II_Day_15
45-
; #Big_O_Time_O(max(N,M))_Space_O(max(N,M)) #AI_can_be_used_to_solve_the_task
46-
; #2025_01_28_Time_0_(100.00%)_Space_128.42_(12.50%)
47-
4843
; Definition for singly-linked list:
4944
#|
5045

‎src/main/racket/g0001_0100/s0003_longest_substring_without_repeating_characters/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ Given a string `s`, find the length of the **longest substring** without repeati
4545
## Solution
4646

4747
```racket
48-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Sliding_Window
49-
; #Algorithm_I_Day_6_Sliding_Window #Level_2_Day_14_Sliding_Window/Two_Pointer #Udemy_Strings
50-
; #Big_O_Time_O(n)_Space_O(1) #AI_can_be_used_to_solve_the_task
51-
; #2025_01_28_Time_134_(75.00%)_Space_132.36_(100.00%)
52-
5348
; Helper function to get the sublist up to 'v' excluded.
5449
(define (take-till q v)
5550
(define (take-till/helper q v acc)

‎src/main/racket/g0001_0100/s0004_median_of_two_sorted_arrays/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ The overall run time complexity should be `O(log (m+n))`.
5555
## Solution
5656

5757
```racket
58-
; #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Array #Binary_Search #Divide_and_Conquer
59-
; #Big_O_Time_O(log(min(N,M)))_Space_O(1) #AI_can_be_used_to_solve_the_task
60-
; #2025_01_28_Time_0_(100.00%)_Space_128.57_(100.00%)
61-
6258
(define/contract (find-median-sorted-arrays nums1 nums2)
6359
(-> (listof exact-integer?) (listof exact-integer?) flonum?)
6460

‎src/main/racket/g0001_0100/s0005_longest_palindromic_substring/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ Given a string `s`, return _the longest palindromic substring_ in `s`.
3939
## Solution
4040

4141
```racket
42-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Dynamic_Programming
43-
; #Data_Structure_II_Day_9_String #Algorithm_II_Day_14_Dynamic_Programming
44-
; #Dynamic_Programming_I_Day_17 #Udemy_Strings #Big_O_Time_O(n)_Space_O(n)
45-
; #2025_01_28_Time_10_(50.00%)_Space_102.35_(50.00%)
46-
4742
(define (longest-palindrome s)
4843
(define (expand-around-center s left right)
4944
(let loop ([l left] [r right])

‎src/main/racket/g0001_0100/s0006_zigzag_conversion/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ string convert(string s, int numRows);
4444
## Solution
4545

4646
```racket
47-
; #Medium #String #Top_Interview_150_Array/String
48-
; #2025_02_03_Time_57_(100.00%)_Space_130.82_(60.00%)
49-
5047
(define/contract (convert s numRows)
5148
(-> string? exact-integer? string?)
5249
(let* ((sLen (string-length s))

‎src/main/racket/g0001_0100/s0007_reverse_integer/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ Given a signed 32-bit integer `x`, return `x` _with its digits reversed_. If rev
4040
## Solution
4141

4242
```racket
43-
; #Medium #Top_Interview_Questions #Math #Udemy_Integers
44-
; #2025_02_03_Time_204_(100.00%)_Space_101.45_(100.00%)
45-
4643
(define/contract (reverse x)
4744
(-> exact-integer? exact-integer?)
4845
(let loop ((x x) (rev 0))

‎src/main/racket/g0001_0100/s0008_string_to_integer_atoi/readme.md

-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ Since -91283472332 is less than the lower bound of the range [-2<sup>31</sup>, 2
118118
## Solution
119119

120120
```racket
121-
; #Medium #Top_Interview_Questions #String #2025_02_03_Time_3_(100.00%)_Space_101.64_(100.00%)
122-
123121
(define/contract (my-atoi s)
124122
(-> string? exact-integer?)
125123
(let* ((trimmed (string-trim s))

‎src/main/racket/g0001_0100/s0009_palindrome_number/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ An integer is a **palindrome** when it reads the same backward as forward. For e
4646
## Solution
4747

4848
```racket
49-
; #Easy #Math #Udemy_Integers #Top_Interview_150_Math
50-
; #2025_02_03_Time_8_(100.00%)_Space_129.01_(88.24%)
51-
5249
(define/contract (is-palindrome x)
5350
(-> exact-integer? boolean?)
5451
(if (< x 0)

‎src/main/racket/g0001_0100/s0010_regular_expression_matching/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ The matching should cover the **entire** input string (not partial).
6161
## Solution
6262

6363
```racket
64-
; #Hard #Top_Interview_Questions #String #Dynamic_Programming #Recursion #Udemy_Dynamic_Programming
65-
; #Big_O_Time_O(m*n)_Space_O(m*n) #2025_02_03_Time_11_(100.00%)_Space_101.36_(100.00%)
66-
6764
(define (regex-state s is-star)
6865
(list s (if is-star '* '1)))
6966

‎src/main/racket/g0001_0100/s0011_container_with_most_water/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ Given `n` non-negative integers <code>a<sub>1</sub>, a<sub>2</sub>, ..., a<sub>n
4646
## Solution
4747

4848
```racket
49-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Greedy #Two_Pointers
50-
; #Algorithm_II_Day_4_Two_Pointers #Top_Interview_150_Two_Pointers #Big_O_Time_O(n)_Space_O(1)
51-
; #2025_02_03_Time_32_(100.00%)_Space_130.58_(100.00%)
52-
5349
(define/contract (max-area height)
5450
(-> (listof exact-integer?) exact-integer?)
5551

‎src/main/racket/g0001_0100/s0015_3sum/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ Notice that the solution set must not contain duplicate triplets.
3535
## Solution
3636

3737
```racket
38-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Sorting #Two_Pointers
39-
; #Data_Structure_II_Day_1_Array #Algorithm_II_Day_3_Two_Pointers #Udemy_Two_Pointers
40-
; #Top_Interview_150_Two_Pointers #Big_O_Time_O(n*log(n))_Space_O(n^2)
41-
; #2025_02_03_Time_999_(100.00%)_Space_130.90_(100.00%)
42-
4338
(define (bin-search val left right items)
4439
(cond [(> left right) #f]
4540
[(= left right) (eq? val (vector-ref items left))]

‎src/main/racket/g0001_0100/s0017_letter_combinations_of_a_phone_number/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ A mapping of digit to letters (just like on the telephone buttons) is given belo
3737
## Solution
3838

3939
```racket
40-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Hash_Table #Backtracking
41-
; #Algorithm_II_Day_11_Recursion_Backtracking #Udemy_Backtracking/Recursion
42-
; #Top_Interview_150_Backtracking #Big_O_Time_O(4^n)_Space_O(n)
43-
; #2025_02_03_Time_0_(100.00%)_Space_102.48_(_%)
44-
4540
(define (letter-combinations digits)
4641
(let* ((letters (vector "" "" "abc" "def" "ghi" "jkl" "mno" "pqrs" "tuv" "wxyz"))
4742
(letters2 (map string->list

‎src/main/racket/g0001_0100/s0019_remove_nth_node_from_end_of_list/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ Given the `head` of a linked list, remove the `nth` node from the end of the lis
3939
## Solution
4040

4141
```racket
42-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Two_Pointers #Linked_List
43-
; #Algorithm_I_Day_5_Two_Pointers #Level_2_Day_3_Linked_List #Top_Interview_150_Linked_List
44-
; #Big_O_Time_O(L)_Space_O(L) #2025_02_03_Time_0_(100.00%)_Space_101.91_(_%)
45-
4642
; Definition for singly-linked list:
4743
#|
4844

‎src/main/racket/g0001_0100/s0020_valid_parentheses/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ An input string is valid if:
5050
## Solution
5151

5252
```racket
53-
; #Easy #Top_100_Liked_Questions #Top_Interview_Questions #String #Stack
54-
; #Data_Structure_I_Day_9_Stack_Queue #Udemy_Strings #Top_Interview_150_Stack
55-
; #Big_O_Time_O(n)_Space_O(n) #2025_02_03_Time_98_(100.00%)_Space_130.80_(100.00%)
56-
5753
(define (is-left-paren c)
5854
(or (eq? c #\u28)
5955
(eq? c #\[)

‎src/main/racket/g0001_0100/s0021_merge_two_sorted_lists/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ Merge two sorted linked lists and return it as a **sorted** list. The list shoul
3636
## Solution
3737

3838
```racket
39-
; #Easy #Top_100_Liked_Questions #Top_Interview_Questions #Linked_List #Recursion
40-
; #Data_Structure_I_Day_7_Linked_List #Algorithm_I_Day_10_Recursion_Backtracking
41-
; #Level_1_Day_3_Linked_List #Udemy_Linked_List #Top_Interview_150_Linked_List
42-
; #Big_O_Time_O(m+n)_Space_O(m+n) #2025_02_03_Time_0_(100.00%)_Space_102.38_(66.67%)
43-
4439
; Definition for singly-linked list:
4540
#|
4641

‎src/main/racket/g0001_0100/s0022_generate_parentheses/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ Given `n` pairs of parentheses, write a function to _generate all combinations o
2626
## Solution
2727

2828
```racket
29-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #String #Dynamic_Programming
30-
; #Backtracking #Algorithm_II_Day_11_Recursion_Backtracking #Udemy_Backtracking/Recursion
31-
; #Top_Interview_150_Backtracking #Big_O_Time_O(2^n)_Space_O(n)
32-
; #2025_02_03_Time_3_(100.00%)_Space_101.96_(100.00%)
33-
3429
(define (generate-parenthesis n)
3530
(let ([res '()])
3631
(let loop ([opening 0] [closing 0] [path ""])

‎src/main/racket/g0001_0100/s0023_merge_k_sorted_lists/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ _Merge all the linked-lists into one sorted linked-list and return it._
4141
## Solution
4242

4343
```racket
44-
; #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Heap_Priority_Queue #Linked_List
45-
; #Divide_and_Conquer #Merge_Sort #Top_Interview_150_Divide_and_Conquer
46-
; #Big_O_Time_O(k*n*log(k))_Space_O(log(k)) #2025_02_03_Time_306_(100.00%)_Space_130.68_(100.00%)
47-
4844
; Definition for singly-linked list:
4945
#|
5046

‎src/main/racket/g0001_0100/s0024_swap_nodes_in_pairs/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ Given a linked list, swap every two adjacent nodes and return its head. You must
3535
## Solution
3636

3737
```racket
38-
; #Medium #Top_100_Liked_Questions #Linked_List #Recursion #Data_Structure_II_Day_12_Linked_List
39-
; #Udemy_Linked_List #Big_O_Time_O(n)_Space_O(1)
40-
; #2025_02_03_Time_0_(100.00%)_Space_101.59_(100.00%)
41-
4238
; Definition for singly-linked list:
4339
#|
4440

‎src/main/racket/g0001_0100/s0025_reverse_nodes_in_k_group/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ You may not alter the values in the list's nodes, only nodes themselves may be c
5151
## Solution
5252

5353
```racket
54-
; #Hard #Top_100_Liked_Questions #Linked_List #Recursion #Data_Structure_II_Day_13_Linked_List
55-
; #Udemy_Linked_List #Top_Interview_150_Linked_List #Big_O_Time_O(n)_Space_O(k)
56-
; #2025_02_03_Time_0_(100.00%)_Space_101.65_(100.00%)
57-
5854
; Definition for singly-linked list:
5955
#|
6056

‎src/main/racket/g0001_0100/s0032_longest_valid_parentheses/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ Given a string containing just the characters `'('` and `')'`, find the length o
3737
## Solution
3838

3939
```racket
40-
; #Hard #Top_100_Liked_Questions #String #Dynamic_Programming #Stack #Big_O_Time_O(n)_Space_O(1)
41-
; #2025_02_03_Time_3_(100.00%)_Space_101.36_(100.00%)
42-
4340
(define/contract (longest-valid-parentheses s)
4441
(-> string? exact-integer?)
4542
(let* ((n (string-length s)))

‎src/main/racket/g0001_0100/s0033_search_in_rotated_sorted_array/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ You must write an algorithm with `O(log n)` runtime complexity.
4242
## Solution
4343

4444
```racket
45-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Binary_Search
46-
; #Algorithm_II_Day_1_Binary_Search #Binary_Search_I_Day_11 #Level_2_Day_8_Binary_Search
47-
; #Udemy_Binary_Search #Top_Interview_150_Binary_Search #Big_O_Time_O(log_n)_Space_O(1)
48-
; #2025_02_03_Time_0_(100.00%)_Space_101.54_(100.00%)
49-
5045
(define/contract (search nums target [index 0])
5146
(-> (listof exact-integer?) exact-integer? exact-integer?)
5247
(cond [(null? nums) -1]

‎src/main/racket/g0001_0100/s0034_find_first_and_last_position_of_element_in_sorted_array/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ You must write an algorithm with `O(log n)` runtime complexity.
3939
## Solution
4040

4141
```racket
42-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Binary_Search
43-
; #Algorithm_II_Day_1_Binary_Search #Binary_Search_I_Day_5 #Top_Interview_150_Binary_Search
44-
; #Big_O_Time_O(log_n)_Space_O(1) #2025_02_03_Time_0_(100.00%)_Space_101.71_(66.67%)
45-
4642
(define (find-bound vec target first-val)
4743
(define (ptr-narrow left right)
4844
(let* ([mid (quotient (+ left right) 2)]

‎src/main/racket/g0001_0100/s0035_search_insert_position/readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ You must write an algorithm with `O(log n)` runtime complexity.
4949
## Solution
5050

5151
```racket
52-
; #Easy #Top_100_Liked_Questions #Array #Binary_Search #Algorithm_I_Day_1_Binary_Search
53-
; #Binary_Search_I_Day_2 #Top_Interview_150_Binary_Search #Big_O_Time_O(log_n)_Space_O(1)
54-
; #2025_02_03_Time_0_(100.00%)_Space_102.38_(_%)
55-
5652
(define (search-insert nums target [low 0] [high (sub1 (length nums))])
5753
(if (< high low)
5854
low

‎src/main/racket/g0001_0100/s0039_combination_sum/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ These are the only two combinations.
4646
## Solution
4747

4848
```racket
49-
; #Medium #Top_100_Liked_Questions #Array #Backtracking #Algorithm_II_Day_10_Recursion_Backtracking
50-
; #Level_2_Day_20_Brute_Force/Backtracking #Udemy_Backtracking/Recursion
51-
; #Top_Interview_150_Backtracking #Big_O_Time_O(2^n)_Space_O(n+2^n)
52-
; #2025_02_03_Time_7_(100.00%)_Space_101.91_(50.00%)
53-
5449
(define (create-task-rec elems target next-list result)
5550
(if (= 0 (length next-list)) result
5651
(if (< target (+ (foldl + 0 elems) (car next-list)))

‎src/main/racket/g0001_0100/s0041_first_missing_positive/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ You must implement an algorithm that runs in `O(n)` time and uses constant extra
4141
## Solution
4242

4343
```racket
44-
; #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Array #Hash_Table #Udemy_Arrays
45-
; #Big_O_Time_O(n)_Space_O(n) #2025_02_03_Time_11_(100.00%)_Space_132.67_(100.00%)
46-
4744
(define/contract (first-missing-positive nums)
4845
(-> (listof exact-integer?) exact-integer?)
4946
(let* ((len (length nums))

‎src/main/racket/g0001_0100/s0042_trapping_rain_water/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ Given `n` non-negative integers representing an elevation map where the width of
3232
## Solution
3333

3434
```racket
35-
; #Hard #Top_100_Liked_Questions #Top_Interview_Questions #Array #Dynamic_Programming #Two_Pointers
36-
; #Stack #Monotonic_Stack #Dynamic_Programming_I_Day_9 #Udemy_Two_Pointers
37-
; #Top_Interview_150_Array/String #Big_O_Time_O(n)_Space_O(1)
38-
; #2025_02_03_Time_0_(100.00%)_Space_129.13_(100.00%)
39-
4035
(define (trap height)
4136
(define H (list->vector height))
4237

‎src/main/racket/g0001_0100/s0045_jump_game_ii/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ You can assume that you can always reach the last index.
3535
## Solution
3636

3737
```racket
38-
; #Medium #Top_100_Liked_Questions #Array #Dynamic_Programming #Greedy
39-
; #Algorithm_II_Day_13_Dynamic_Programming #Dynamic_Programming_I_Day_4
40-
; #Top_Interview_150_Array/String #Big_O_Time_O(n)_Space_O(1)
41-
; #2025_02_03_Time_631_(100.00%)_Space_132.16_(100.00%)
42-
4338
(define (init-vec len)
4439
(let ([prepare-vec (make-vector len 99999)])
4540
(begin (vector-set! prepare-vec 0 0) prepare-vec)))

‎src/main/racket/g0001_0100/s0046_permutations/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ Given an array `nums` of distinct integers, return _all the possible permutation
3434
## Solution
3535

3636
```racket
37-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Backtracking
38-
; #Algorithm_I_Day_11_Recursion_Backtracking #Level_2_Day_20_Brute_Force/Backtracking
39-
; #Udemy_Backtracking/Recursion #Top_Interview_150_Backtracking #Big_O_Time_O(n*n!)_Space_O(n+n!)
40-
; #2025_02_03_Time_0_(100.00%)_Space_101.43_(66.67%)
41-
4237
(define/contract (permute nums)
4338
(-> (listof exact-integer?) (listof (listof exact-integer?)))
4439
(cond [(empty? nums) (list empty)]

‎src/main/racket/g0001_0100/s0049_group_anagrams/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ An **Anagram** is a word or phrase formed by rearranging the letters of a differ
3636
## Solution
3737

3838
```racket
39-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #String #Hash_Table #Sorting
40-
; #Data_Structure_II_Day_8_String #Programming_Skills_II_Day_11 #Udemy_Strings
41-
; #Top_Interview_150_Hashmap #Big_O_Time_O(n*k_log_k)_Space_O(n)
42-
; #2025_02_03_Time_72_(100.00%)_Space_131.77_(100.00%)
43-
4439
(define (group-anagrams strs)
4540
(group-by (compose1 (curryr sort char<?) string->list) strs))
4641
```

‎src/main/racket/g0001_0100/s0051_n_queens/readme.md

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ Each solution contains a distinct board configuration of the n-queens' placement
3434
## Solution
3535

3636
```racket
37-
; #Hard #Top_100_Liked_Questions #Array #Backtracking #Big_O_Time_O(N!)_Space_O(N)
38-
; #2025_02_03_Time_123_(100.00%)_Space_129.70_(100.00%)
39-
4037
(define (reverse sequence)
4138
(foldr (lambda (x y) (append y (list x))) `() sequence))
4239

‎src/main/racket/g0001_0100/s0053_maximum_subarray/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ A **subarray** is a **contiguous** part of an array.
3939
## Solution
4040

4141
```racket
42-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Dynamic_Programming
43-
; #Divide_and_Conquer #Data_Structure_I_Day_1_Array #Dynamic_Programming_I_Day_5
44-
; #Udemy_Famous_Algorithm #Top_Interview_150_Kadane's_Algorithm #Big_O_Time_O(n)_Space_O(1)
45-
; #2025_02_03_Time_51_(100.00%)_Space_140.95_(100.00%)
46-
4742
(define/contract (recur nums)
4843
(-> (listof exact-integer?) pair?)
4944
(if (empty? nums) (cons 0 -1000000)

‎src/main/racket/g0001_0100/s0055_jump_game/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ Return `true` _if you can reach the last index, or_ `false` _otherwise_.
3333
## Solution
3434

3535
```racket
36-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Dynamic_Programming #Greedy
37-
; #Algorithm_II_Day_12_Dynamic_Programming #Dynamic_Programming_I_Day_4 #Udemy_Arrays
38-
; #Top_Interview_150_Array/String #Big_O_Time_O(n)_Space_O(1)
39-
; #2025_02_03_Time_0_(100.00%)_Space_132.04_(_%)
40-
4136
(define (can-jump L)
4237
(let loop ([i 0] [arr L] [best 0] [N (length L)])
4338
(cond ((< best i) #f)

‎src/main/racket/g0001_0100/s0056_merge_intervals/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ Given an array of `intervals` where <code>intervals[i] = [start<sub>i</sub>, end
3232
## Solution
3333

3434
```racket
35-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Array #Sorting
36-
; #Data_Structure_II_Day_2_Array #Level_2_Day_17_Interval #Udemy_2D_Arrays/Matrix
37-
; #Top_Interview_150_Intervals #Big_O_Time_O(n_log_n)_Space_O(n)
38-
; #2025_02_03_Time_474_(100.00%)_Space_131.06_(_%)
39-
4035
(define/contract (merge intervals)
4136
(-> (listof (listof exact-integer?)) (listof (listof exact-integer?)))
4237
(if (empty? intervals)

‎src/main/racket/g0001_0100/s0062_unique_paths/readme.md

-5
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ The test cases are generated so that the answer will be less than or equal to <c
4040
## Solution
4141

4242
```racket
43-
; #Medium #Top_100_Liked_Questions #Top_Interview_Questions #Dynamic_Programming #Math
44-
; #Combinatorics #Algorithm_II_Day_13_Dynamic_Programming #Dynamic_Programming_I_Day_15
45-
; #Level_1_Day_11_Dynamic_Programming #Big_O_Time_O(m*n)_Space_O(m*n)
46-
; #2025_02_03_Time_6_(100.00%)_Space_102.66_(100.00%)
47-
4843
(define (calc-path! start end direction cache other-p)
4944
(begin (if (string=? direction "v")
5045
(for ([i (in-range start end)])

0 commit comments

Comments
 (0)