摘要:
題目 class FooBar { private int n; public FooBar(int n) { this.n = n; } public void foo(Runnable printFoo) throws InterruptedException { for (int i = 0; 閱讀全文
摘要:
最長公共前綴 public class LongestCommonPrefix { public String longestCommonPrefix(String[] strs) { // 如果字符串數組為空或長度為0,返回空字符串 if (strs == null || strs.length 閱讀全文
摘要:
舉例 def underscore_to_camelcase(s): def camelcase(): yield str.lower while True: yield str.capitalize return ''.join(f(sub) for sub, f in zip(s.split(' 閱讀全文