Medicines (藥物) (n)OTC (over the counter) medicinesGastrointestinal Syste...
總結(jié): 不可在for loop中計算, 一定要input一個fixed value錯誤例子e.g. for (int i=0; i<count...
總結(jié): "+".equals("+") 為正確, string不能用== 比較 思路: 用stack 從左到右掃, 如遇到數(shù)字則壓棧, 如遇到符...
思路: 在add new item 之後將 除新item之後的數(shù)都加進queues中 e.g. 12--> 21 , add 3 --> 3...
思路: 用2 stack, 當stack1.push的時侯將stack的item放進stack2 中, 當stack1為空時放入item x (...
思路: 從右上角開始看, 如右上角大於target , 向左一行看, j--,如該數(shù)等於target, return true,如該數(shù)小於ta...
各職頂薪 及對應(yīng)可供mortgage 薪金: (供款佔薪金55%或以下)ACO : pt 15 HKD 30185, 16601CO: pt ...
思路:從後向前iterate, 如果遇到 ' ' 則輸出 s.length() -i -1 要用s.trim() 來清潔多餘空間"a "--> "a"
總結(jié): 注意邊界: i<haystack.length()-needle.length()+1 注意 .equals() 和 == 的分別, ...