groupNoAdj
public boolean groupNoAdj(int start, int[] nums, int target) { if( start >= nums.length){ return target==0; } if(groupNoAdj(start+2, nums, target-nums[start])) return true; if(groupNoAdj(start+1, nums, target)) return true; return false; }
http://codingbat.com/prob/p169605
MySQL限时解答,24小时内友哥专业解答
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指
http://www.yougemysqldba.com
如有进一步需要请联系微信onesoft007
微博账号@友哥一指