Skip to content

Commit af540bf

Browse files
committed
Fix: remove problem, URL comment
1 parent ee9e9b9 commit af540bf

File tree

96 files changed

+193
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+193
-187
lines changed

algorithms/python3/0067-add-binary.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Problem: 67. Add Binary
2-
# URL: https://leetcode.com/problems/add-binary
1+
# 67. Add Binary
2+
# https://leetcode.com/problems/add-binary
33

44
class Solution:
55
def addBinary(self, a: str, b: str) -> str:

algorithms/python3/0104-maximum-depth-of-binary-tree.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Problem: 104. Maximum Depth of Binary Tree
2-
# URL: https://leetcode.com/problems/maximum-depth-of-binary-tree
1+
# 104. Maximum Depth of Binary Tree
2+
# https://leetcode.com/problems/maximum-depth-of-binary-tree
33

44
# Definition for a binary tree node.
55
# class TreeNode:

algorithms/python3/0443-string-compression.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Problem: 443. String Compression
2-
# URL: https://leetcode.com/problems/string-compression
1+
# 443. String Compression
2+
# https://leetcode.com/problems/string-compression
33

44
class Solution:
55
def compress(self, chars: list[str]) -> int:
66
n = len(chars)
7-
7+
88
if n == 1:
99
return 1
1010

algorithms/python3/0502-ipo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Problem: 502. IPO
2-
# URL: https://leetcode.com/problems/ipo
1+
# 502. IPO
2+
# https://leetcode.com/problems/ipo
33

44
import heapq
55

algorithms/python3/0783-minimum-distance-between-bst-nodes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Problem: 783. Minimum Distance Between BST Nodes
2-
# URL: https://leetcode.com/problems/minimum-distance-between-bst-nodes
1+
# 783. Minimum Distance Between BST Nodes
2+
# https://leetcode.com/problems/minimum-distance-between-bst-nodes
33

44
# Definition for a binary tree node.
55
# class TreeNode:

algorithms/python3/0875-koko-eating-bananas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Problem: 875. Koko Eating Bananas
2-
# URL: https://leetcode.com/problems/koko-eating-bananas
1+
# 875. Koko Eating Bananas
2+
# https://leetcode.com/problems/koko-eating-bananas
33

44
'''
55

algorithms/python3/2187-minimum-time-to-complete-trips.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Problem: 2187. Minimum Time to Complete Trips
2-
# URL: https://leetcode.com/problems/minimum-time-to-complete-trips
1+
# 2187. Minimum Time to Complete Trips
2+
# https://leetcode.com/problems/minimum-time-to-complete-trips
33

44
class Solution:
55
def minimumTime(self, time: list[int], totalTrips: int) -> int:

algorithms/ruby/0001-two-sum.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 1. Two Sum
4-
# URL: https://leetcode.com/problems/two-sum
3+
# 1. Two Sum
4+
# https://leetcode.com/problems/two-sum
55

66
# @param {Integer[]} nums
77
# @param {Integer} target

algorithms/ruby/0002-add-two-numbers.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 2. Add Two Numbers
4-
# URL: https://leetcode.com/problems/add-two-numbers
3+
# 2. Add Two Numbers
4+
# https://leetcode.com/problems/add-two-numbers
55

66
# Definition for singly-linked list.
77
# class ListNode

algorithms/ruby/0003-longest-substring-without-repeating-characters.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 3. Longest Substring Without Repeating Characters
4-
# URL: https://leetcode.com/problems/longest-substring-without-repeating-characters
3+
# 3. Longest Substring Without Repeating Characters
4+
# https://leetcode.com/problems/longest-substring-without-repeating-characters
55

66
# @param {String} s
77
# @return {Integer}

algorithms/ruby/0004-median-of-two-sorted-arrays.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 4. Median of Two Sorted Arrays
4-
# URL: https://leetcode.com/problems/median-of-two-sorted-arrays
3+
# 4. Median of Two Sorted Arrays
4+
# https://leetcode.com/problems/median-of-two-sorted-arrays
55

66
# @param {Integer[]} nums1
77
# @param {Integer[]} nums2

algorithms/ruby/0005-longest-palindromic-substring.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 5. Longest Palindromic Substring
4-
# URL: https://leetcode.com/problems/longest-palindromic-substring
3+
# 5. Longest Palindromic Substring
4+
# https://leetcode.com/problems/longest-palindromic-substring
55

66
=begin
77

algorithms/ruby/0006-zigzag-conversion.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 6. Verifying an Alien Dictionary
4-
# URL: https://leetcode.com/problems/zigzag-conversion
3+
# 6. Verifying an Alien Dictionary
4+
# https://leetcode.com/problems/zigzag-conversion
55

66
# @param {String} s
77
# @param {Integer} num_rows

algorithms/ruby/0007-reverse-integer.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 7. Reverse Integer
4-
# URL: https://leetcode.com/problems/reverse-integer
3+
# 7. Reverse Integer
4+
# https://leetcode.com/problems/reverse-integer
55

66
=begin
77

algorithms/ruby/0008-string-to-integer-atoi.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Problem: 8. String to Integer (atoi)
3+
# 8. String to Integer (atoi)
44
# URL:https://leetcode.com/problems/string-to-integer-atoi
55

66
=begin

algorithms/ruby/0009-palindrome-number.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 9. Palindrome Number
4-
# URL: https://leetcode.com/problems/palindrome-number
3+
# 9. Palindrome Number
4+
# https://leetcode.com/problems/palindrome-number
55

66
# @param {Integer} x
77
# @return {Boolean}

algorithms/ruby/0010-regular-expression-matching.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 10. Regular Expression Matching
4-
# URL: https://leetcode.com/problems/regular-expression-matching
3+
# 10. Regular Expression Matching
4+
# https://leetcode.com/problems/regular-expression-matching
55

66
# @param {String} s
77
# @param {String} p

algorithms/ruby/0012-integer-to-roman.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 12. Integer to Roman
4-
# URL: https://leetcode.com/problems/integer-to-roman
3+
# 12. Integer to Roman
4+
# https://leetcode.com/problems/integer-to-roman
55

66
=begin
77

algorithms/ruby/0013-roman-to-integer.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 13. Roman to Integer
4-
# URL: https://leetcode.com/problems/roman-to-integer
3+
# 13. Roman to Integer
4+
# https://leetcode.com/problems/roman-to-integer
55

66
ROMAN_VALUES = {
77
"I" => 1,

algorithms/ruby/0020-valid-parentheses.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 20. Valid Parentheses
4-
# URL: https://leetcode.com/problems/valid-parentheses
3+
# 20. Valid Parentheses
4+
# https://leetcode.com/problems/valid-parentheses
55

66
# @param {String} s
77
# @return {Boolean}

algorithms/ruby/0021-merge-two-sorted-lists.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 21. Merge Two Sorted Lists
4-
# URL: https://leetcode.com/problems/merge-two-sorted-lists
3+
# 21. Merge Two Sorted Lists
4+
# https://leetcode.com/problems/merge-two-sorted-lists
55

66
# Definition for singly-linked list.
77
# class ListNode

algorithms/ruby/0023-merge-k-sorted-lists.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 23. Merge k Sorted Lists
4-
# URL: https://leetcode.com/problems/merge-k-sorted-lists
3+
# 23. Merge k Sorted Lists
4+
# https://leetcode.com/problems/merge-k-sorted-lists
55

66
=begin
77

algorithms/ruby/0026-remove-duplicates-from-sorted-array.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 26. Remove Duplicates from Sorted Array
4-
# URL: https://leetcode.com/problems/remove-duplicates-from-sorted-array
3+
# 26. Remove Duplicates from Sorted Array
4+
# https://leetcode.com/problems/remove-duplicates-from-sorted-array
55

66
# @param {Integer[]} nums
77
# @return {Integer}

algorithms/ruby/0027-remove-element.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 27. Remove Element
4-
# URL: https://leetcode.com/problems/remove-element
3+
# 27. Remove Element
4+
# https://leetcode.com/problems/remove-element
55

66
# @param {Integer[]} nums
77
# @param {Integer} val

algorithms/ruby/0028-find-the-index-of-the-first-occurrence-in-a-string.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 28. Find the Index of the First Occurrence in a String
4-
# URL: https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string
3+
# 28. Find the Index of the First Occurrence in a String
4+
# https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string
55

66
# @param {String} haystack
77
# @param {String} needle

algorithms/ruby/0035-search-insert-position.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 35. Search Insert Position
4-
# URL: https://leetcode.com/problems/search-insert-position
3+
# 35. Search Insert Position
4+
# https://leetcode.com/problems/search-insert-position
55

66
# @param {Integer[]} nums
77
# @param {Integer} target

algorithms/ruby/0045-jump-game-ii.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 45. Jump Game II
4-
# URL: https://leetcode.com/problems/jump-game-ii
3+
# 45. Jump Game II
4+
# https://leetcode.com/problems/jump-game-ii
55

66
# @param {Integer[]} nums
77
# @return {Integer}

algorithms/ruby/0058-length-of-last-word.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 58. Length of Last Word
4-
# URL: https://leetcode.com/problems/length-of-last-word
3+
# 58. Length of Last Word
4+
# https://leetcode.com/problems/length-of-last-word
55

66
# @param {String} s
77
# @return {Integer}

algorithms/ruby/0062-unique-paths.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# 62. Unique Paths
44
# https://leetcode.com/problems/unique-paths
5+
# Medium
56

67
=begin
78

algorithms/ruby/0066-plus-one.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 66. Plus One
4-
# URL: https://leetcode.com/problems/plus-one
3+
# 66. Plus One
4+
# https://leetcode.com/problems/plus-one
55

66
=begin
77

algorithms/ruby/0067-add-binary.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 67. Add Binary
4-
# URL: https://leetcode.com/problems/add-binary
3+
# 67. Add Binary
4+
# https://leetcode.com/problems/add-binary
55

66
# @param {String} a
77
# @param {String} b

algorithms/ruby/0069-sqrtx.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 69. Sqrt(x)
4-
# URL: https://leetcode.com/problems/sqrtx
3+
# 69. Sqrt(x)
4+
# https://leetcode.com/problems/sqrtx
55

66
# @param {Integer} x
77
# @return {Integer}

algorithms/ruby/0070-climbing-stairs.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 70. Climbing Stairs
4-
# URL: https://leetcode.com/problems/climbing-stairs
3+
# 70. Climbing Stairs
4+
# https://leetcode.com/problems/climbing-stairs
55

66
# @param {Integer} n
77
# @return {Integer}

algorithms/ruby/0072-edit-distance.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# frozen_string_literal: true
22

3-
# Problem: 72. Edit Distance
4-
# URL: https://leetcode.com/problems/edit-distance
3+
# 72. Edit Distance
4+
# https://leetcode.com/problems/edit-distance
5+
# Hard
56

67
# @param {String} word1
78
# @param {String} word2

algorithms/ruby/0091-decode-ways.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 91. Decode Ways
4-
# URL: https://leetcode.com/problems/decode-ways
3+
# 91. Decode Ways
4+
# https://leetcode.com/problems/decode-ways
55

66
# @param {String} s
77
# @return {Integer}

algorithms/ruby/0101-symmetric-tree.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 101. Symmetric Tree
4-
# URL: https://leetcode.com/problems/symmetric-tree
3+
# 101. Symmetric Tree
4+
# https://leetcode.com/problems/symmetric-tree
55

66
=begin
77

algorithms/ruby/0103-binary-tree-zigzag-level-order-traversal.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 103. Binary Tree Zigzag Level Order Traversal
4-
# URL: https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
3+
# 103. Binary Tree Zigzag Level Order Traversal
4+
# https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal
55

66
# Definition for a binary tree node.
77
# class TreeNode

algorithms/ruby/0104-maximum-depth-of-binary-tree.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 104. Maximum Depth of Binary Tree
4-
# URL: https://leetcode.com/problems/maximum-depth-of-binary-tree
3+
# 104. Maximum Depth of Binary Tree
4+
# https://leetcode.com/problems/maximum-depth-of-binary-tree
55

66
# Definition for a binary tree node.
77
# class TreeNode

algorithms/ruby/0106-construct-binary-tree-from-inorder-and-postorder-traversal.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 106. Construct Binary Tree from Inorder and Postorder Traversal
4-
# URL: https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
3+
# 106. Construct Binary Tree from Inorder and Postorder Traversal
4+
# https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal
55

66
=begin
77

algorithms/ruby/0109-convert-sorted-list-to-binary-search-tree.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 109. Convert Sorted List to Binary Search Tree
4-
# URL: https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
3+
# 109. Convert Sorted List to Binary Search Tree
4+
# https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree
55

66
=begin
77

algorithms/ruby/0113-path-sum-ii.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Problem: 113. Path Sum II
4-
# URL: https://leetcode.com/problems/path-sum-ii
3+
# 113. Path Sum II
4+
# https://leetcode.com/problems/path-sum-ii
55

66
# Definition for a binary tree node.
77
# class TreeNode

0 commit comments

Comments
 (0)