PARENTS 杂志里有CETAPHIL 2刀胖子# PennySaver - 省钱一族
g*5
1 楼
刚面完
题目不难,不过是烙印,拿不定
1. Given an integer array, place all the zeros to the end.
{4, 0, 5, 0, 8} => { 4, 5, 8, 0, 0}
follow up:不care顺数的话尽量少用write,swap就行
2.The number of valid combinations of a strings for given input array a[],
where a=>1, z => 26, and 0 <= a[i] <= 9
{1,1,1} => { aaa, ak, ka} => 3
{1,1,0} => {aj} => 1
follow up: O(1) memory
20分钟2题就写完了,非要我做了一堆test
他说马上就提交feedback,求bless
题目不难,不过是烙印,拿不定
1. Given an integer array, place all the zeros to the end.
{4, 0, 5, 0, 8} => { 4, 5, 8, 0, 0}
follow up:不care顺数的话尽量少用write,swap就行
2.The number of valid combinations of a strings for given input array a[],
where a=>1, z => 26, and 0 <= a[i] <= 9
{1,1,1} => { aaa, ak, ka} => 3
{1,1,0} => {aj} => 1
follow up: O(1) memory
20分钟2题就写完了,非要我做了一堆test
他说马上就提交feedback,求bless