Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=[1,1,1,2,2,3],Your function should re... Read More
posted @ 2015-08-21 11:12 sunalive Views(116) Comments(0) Diggs(0)
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?使用先对角线翻转,后水平翻转1 2 ... Read More
posted @ 2015-08-21 10:15 sunalive Views(192) Comments(0) Diggs(0)