注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
第一题太简单了。
2. given a string [] with commands in it, their type is ls, cp, mv, and !<index>, the !<index> is used to repeat the index th command(1 base) since the start of the session. return me how many time does the commands called ls, cp and mv. for example, (ls, cp, mv,mv, !1 ,!5)the !1 call ls, and !5 is caates the max number of ob. return the coordinate of the lamp. for example, objects = [-5,3,4,9] and radius of the lamp is 5, then the output is -1, because in position -1 can illuminate 3 objects |