Skip to content

Commit

Permalink
updating rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Dec 11, 2023
1 parent 334c7ea commit c9aa6a4
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions sig/leetcode.rbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
module Leetcode
VERSION: String
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
end
class MergeKSortedLists
# _@param_ `lists`
def execute: (::Array[::Array[Integer]] lists) -> ::Array[untyped]
end

class MedianOfTwoSortedArrays
# _@param_ `nums1`
#
# _@param_ `nums2`
def execute: (::Array[Integer] nums1, ::Array[Integer] nums2) -> Float
end

# https://leetcode.com/problems/regular-expression-matching/
class RegularExpressionMatching
# _@param_ `string`
#
# _@param_ `pattern`
def execute: (String string, String pattern) -> bool
end
end

0 comments on commit c9aa6a4

Please sign in to comment.