摘要:
用queue实现stack题目要求:Implement the following operationspush(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get... 阅读全文
摘要:
leetcode新题,另外似乎是L家面经题Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.... 阅读全文
摘要:
cc150 Question 11.2 Sort array of string that anagrams next to each other.(leetcode 也有类似题目)Solution 1: 借助Arrays.sort, 需要重写comparator。 1 public sta... 阅读全文