简历:The Google Resume: How to Prepare for a Career and Land a Job at Apple, Microsoft, Google, or any Top Tech Company
算法学习书籍:Introduction to Algorithms
编程珠玑:Programming Pearls (2nd Edition)
C++ 学习:The C++ Programming Language, 4th Edition
经典操作系统书籍,龙书:Operating System Concepts
创业:The Start-up of You: Adapt to the Future, Invest in Yourself, and Transform Your Career
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space to hold additional elements from B. The number of elements initialized in A and B are m and n respectively.
» Solve this problemYou may assume that A has enough space to hold additional elements from B. The number of elements initialized in A and B are m and n respectively.
刚开始想到从A[]的后面开始塞,但还想这样做完后得reverse一遍。但是却没想到,既然都是sorted,那么A[]和B[]也分别从后面开始比较就好了。稍微要动一点儿脑筋,要灵活。
Google Resume这书好!谢谢MM推荐。
ReplyDelete不谢啦,希望你喜欢哦 :-)
Delete