今天來寫第15題
題目
題目翻譯
給一包含n個整數的陣列nums,有任意三個元素a, b, c能夠使a + b + c = 0 成立嗎?找到所有陣列中的三個數...
Problem :
Given an integer array nums, find the subarray with the largest sum, a...
原文題目There are a total of numCourses courses you have to take, labeled from 0 to ...
雜湊法(Hahing)是一種資料存取技術,通過將資料映射到一個特定的地址,實現快速的查找、插入和刪除操作。其核心原理是使用一個雜湊函數(Hash Functio...
On day 1, one person discovers a secret.
You are given an integer delay, which m...
這題要把一個單字列表照給的最大寬度格式化,讓每行都正好符合最大寬度,且兩端要對齊,問題在怎麼分配空格,確保最後一行左對齊。思路:逐行打包單字,首先,要用貪心一點...