- Dec 10 Thu 2020 14:20
[心情雜記] 二零二零
- Oct 26 Mon 2020 11:39
[Ubuntu]如何允許ubuntu無密碼且用root自動登入
- Sep 10 Thu 2020 17:40
[C++] Leetcode題( 1365. How Many Numbers Are Smaller Than the Current Number )
Given the array nums
, for each nums[i]
find out how many numbers in the array are smaller than it. That is, for each nums[i]
you have to count the number of valid j's
such that j != i
and nums[j] < nums[i]
.
Return the answer in an array.
- Sep 09 Wed 2020 10:50
[C++] Leetcode題( 1342. Number of Steps to Reduce a Number to Zero )
- Sep 09 Wed 2020 10:48
[C++] Leetcode題( 1528. Shuffle String )
- Sep 04 Fri 2020 11:12
[C++] Leetcode題( 771. Jewels and Stones )
You're given strings J
representing the types of stones that are jewels, and S
representing the stones you have. Each character in S
is a type of stone you have. You want to know how many of the stones you have are also jewels.
The letters in J
are guaranteed distinct, and all characters in J
and S
are letters. Letters are case sensitive, so "a"
is considered a different type of stone from "A"
.
- Sep 04 Fri 2020 11:08
[C++]C++ string中英文字母大小寫轉換
最近因為刷起leetcode,所以用到了蠻大量的string這個類型,
- Sep 01 Tue 2020 17:22
[C++] Leetcode題( 1512. Number of Good Pairs )
Given an array of integers nums
.
A pair (i,j)
is called good if nums[i]
== nums[j]
and i
< j
.
- Aug 06 Thu 2020 09:48
[Python] 面試考題
剛剛看了紀錄,很可怕的是我七月份都沒有任何一次更新,