LeetCode Solution, Easy, 344. Reverse String
反轉字串
Search for a command to run...
Articles tagged with #programming-languages
反轉字串
410. Split Array Largest Sum 題目敘述 Given an array nums which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays. Exa...
287. Find the Duplicate Number 題目敘述 Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated number in nums, return this repeated number. You must solve the problem with...
計算兩個城市的面試調度最小花費
找出最少可載完所有人的船隻數量
991. Broken Calculator 題目敘述 There is a broken calculator that has the integer startValue on its display initially. In one operation, you can: multiply the number on display by 2, or subtract 1 from the number on display. Given two integers startVal...