LeetCode: 849-Maximize Distance to Closest Person 解題紀錄
Last Updated on 2022-01-16 by Clay
Last Updated on 2022-01-16 by Clay
Last Updated on 2022-01-11 by Clay
Last Updated on 2022-01-10 by Clay
Given two binary stringsRead More »LeetCode: 67-Add Binary 解題紀錄a
andb
, return their sum as a binary string.
Last Updated on 2022-01-09 by Clay
Last Updated on 2022-01-09 by Clay
最近我在另外一台伺服器上配置了自己的 SSH 金鑰,主要目的是希望在另外一台伺服器上跟他人共同撰寫的程式碼,能夠透過 git
指令來將專案推到 GitHub 上來進行版本控制。
Last Updated on 2023-10-12 by Clay
在 Linux 作業系統中,每一份文件都有屬於自己的使用者、群組以及讀寫權限,而這些文件的特性又會影響到其他使用者是否能編輯或使用這份檔案。
Read More »[Linux] 使用 chmod 指令改變檔案權限Last Updated on 2022-01-09 by Clay
Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1 <= index1 < index2 <= numbers.length. Return the indices of the two numbers, index1 and index2, added by one as an integer array [index1, index2] of length 2. The tests are generated such that there is exactly one solution. You may not use the same element twice.Read More »LeetCode: 167-Two Sum II – Input Array Is Sorted 解題紀錄
Last Updated on 2022-01-06 by Clay
There is a car withRead More »LeetCode: 1094-Car Pooling 解題紀錄capacity
empty seats. The vehicle only drives east (i.e., it cannot turn around and drive west). You are given the integercapacity
and an arraytrips
wheretrip[i] = [numPassengersi, fromi, toi]
indicates that theith
trip hasnumPassengersi
passengers and the locations to pick them up and drop them off arefromi
andtoi
respectively. The locations are given as the number of kilometers due east from the car's initial location. Returntrue
if it is possible to pick up and drop off all passengers for all the given trips, orfalse
otherwise.