摘要:
142. Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the link 阅读全文
摘要:
583. Delete Operation for Two Strings Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, whe 阅读全文
摘要:
调用ByteBuffer.getInt()方法遇到的奇怪错误 最近在参加阿里的中间件比赛,中间用到了RocketMQ的思想,并且主要集中在使用NIO来读写文件。其中遇到了一个很蛋疼的问题,想了半天想不出来为什么,现已解决并来记录一下。 先上代码: @Test public void test() t 阅读全文
摘要:
回溯法的应用 原题 Given n pairs of parentheses, write a function to generate all combinations of well formed parentheses. For example, given n = 3, a solution 阅读全文