注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
之前投了一个Nutanix的实习,上来就要做OA,分享一下
第一题,
已知一个array包含 0 和 1,求它的weight
定义:
Weight of string = Weight of total pairs + weight of single characters - Total number of toggles.Two consecutive character [1, 2, 1, 3, 0, 4, 1, 2, 1]
index 0, 1, 2, 3, 4, 5, 6, 7, 8
青蛙 跳跃位置index : 0, 1, 3, 5, 8 , 四步
相似例题参考链接:
|