1.经典题,找到长度大于等于4且为偶数的单词,在中间插入空格。
Given a string.Replace the words whose length>=4 and is even,with a space between the two equal halves of the word.consider only alphabets for finding the eveness of the word
2.这道题没见过,详细说一下。
已知用一个2d矩阵表示image,0表示白像素,1表示黑像素。每一个page长宽都为1000,image和page一样宽.现在问题来了。。
image的长度可以大于一个page的长度,说白了就是image分页显示,题目要求计算出最少的分页数,并输出在分页的像素行row下标。。row的要求是,不能有黑像素,如果没有符合要求的row,拿分页就从image像素的最后一行起的第1000th行来算。。
3.经典题,tic-tac-toe
4.经典题,类似于手机电话键盘,给一串数字问可能的字符组合。
Read full article from 面经网
No comments:
Post a Comment