Log for
電訊台
vnc果陣用steelseries會lag, 用logitech mouse唔會
有老細約我去K11食飯傾野,我估係想拉我去佢公司,但我還是忠於而家呢間,個老細好人,又唔使返工,佢開10萬我都唔過
高等法院上月頒布臨時禁制令,禁止任何人非法及故意在互聯網平台或媒介,傳播、發布或重新發布任何鼓勵或煽動使用暴力信息,禁制令原定今早屆滿,律政司申請延長禁制令,香港互聯網協會早前入稟推翻禁制令,要求法庭裁定違憲,高等法院開庭處理。
互聯網協會代表律師說,臨時禁制令限制市民基本及受法例保障的言論自由,造成網絡自我審查,令市民擔心網絡上的言論為自己帶來麻煩,社會將出現極端的寒蟬效應,違反憲法。
代表律師又表示,近日在telegram平台有關示威的群組仍然存在,即使telegram將群組關閉,亦會有更多群組出現,因此臨時禁制令的成效值得質疑。
他又說,警方在過去幾個月已透過法例拘捕多人涉及起底,相信現有的網絡安全部門已足以處理網絡起底及鼓吹暴力個案,因此警方無需依靠禁制令執法,頒布禁制令是沒有必要。
Given a string s, how do you find if s is palindromic?
that is, the reverse if s is equal to s itself
Can you do that with O(1) memory?
How to do that in detail?
In fact, only floor(n/2) comparisons is needed
You only need to compare the first half of the string :p
bool res = true;
int i = 0;
int end = s.size()
/2while (res && i<end) {
res = s[i] = s[s.size()-1-i];
++i;
}
return res;
難啲嘅題目:
Given a string, find its longest palindromic substring
while(s[i++] == s[size-i-1])
The performance is the same
in python who cares performance
split half and see if the reverse index item is the same as index item
天台suppose 唔洗licences 嘅得tv同public radio
但收音方法係
由個耳機放返個87.0MHz ~ 108.0 MHz range(可以自己set) 嘅頻道出嚟,然後等收音機scan 多次所有channel 出嚟