Ruby 今天的 leetcode 周赛出了个 Bug

xerox51 · 2024年08月04日 · 259 次阅读
class neighborSum

=begin
    :type grid: Integer[][]
=end
    def initialize(grid)

    end


=begin
    :type value: Integer
    :rtype: Integer
=end
    def adjacent_sum(value)

    end


=begin
    :type value: Integer
    :rtype: Integer
=end
    def diagonal_sum(value)

    end


end

# Your neighborSum object will be instantiated and called as such:
# obj = neighborSum.new(grid)
# param_1 = obj.adjacent_sum(value)
# param_2 = obj.diagonal_sum(value)
···
大家自己领会我笑了
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号