Solution 1: 依序尋訪每個可能值,記錄下符合條件的最大值。但其複雜度為O(N²),在Hackerrank 中測試時,會有Error in Testcase2: “Terminated due to ...
確定! 回上一頁