摘要:
上大学的时候学过软件测试这门课,但是在公司实习时才真正实战了一把。先花了半个月把Junit In Action 英文版看完了(话说在公司学习效率就是比学校里高啊) 废话不多说,直接开始主题。 为什么要写单元测试? 两个理由:1.给我们重构的信心(give us the confidence ... 阅读全文
摘要:
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?[Thoughts]有一种使用两个指针的方法,一个fast指针,每次移动两步;一个s... 阅读全文
摘要:
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's 1 ... 阅读全文
摘要:
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie... 阅读全文