Clay
LeetCode: 1926-Nearest Exit from Entrance in Maze 解題紀錄
題目
You are given an m x n
matrix maze
(0-indexed) with empty cells (represented as '.'
) and walls (represented as '+'
). You are also given the entrance
of the maze, where entrance = [entrancerow, entrancecol]
denotes the row and column of the cell you are initially standing at.
[Linux] 如何更換 “date” 指令的顯示語言
今天我在 Linux 系統上使用 date
指令查看當前日期時間時,我得到了以下的中文顯示結果:
西元2022年09月27日 (週二) 19時41分14秒 CST
Read More »[Linux] 如何更換 “date” 指令的顯示語言LeetCode: 985-Sum of Even Numbers After Queries 解題紀錄
題目
You are given an integer array nums
and an array queries
where queries[i] = [vali, indexi]
.
LeetCode: 609-Find Duplicated File in System 解題紀錄
題目
Given a list paths
of directory info, including the directory path, and all the files with contents in this directory, return all the duplicate files in the file system in terms of their paths. You may return the answer in any order.
LeetCode: 2007-Find Original Array From Doubled Array
題目
An integer array original
is transformed into a doubled array changed
by appending twice the value of every element in original
, and then randomly shuffling the resulting array.