Skip to content

最長平台 #13

Description

@MontyPan

等一下(因為我要拿到 issue 號碼才能生檔案)會出現 IssueXX.jara,請修改 longest() 的實作,讓它可以處理所有符合前提假設的 data 並且能回傳正確值。

這次就不用搞什麼很多個版本了,請直接拿出你最厲害的版本 🙈

喔對,既然你自己偷跑了 while-loop,我著實高興 (因為我懶得教這個)。雖然所有的 for-loop 都可以改寫成 while-loop,不過如果你覺得這題用 while-loop 會看起來比較厲害,那也可以用這招。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions