Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean unlucky1(int[] nums)
- {
- boolean bResult = false;
- for (int index = 0; index < nums.length - 1; ++index)
- {
- if ((nums[index] == 1) && (nums[index + 1] == 3))
- {
- bResult = true;
- }
- }
- if ((nums.length == 5) && (nums[nums.length - 2] == 3))
- {
- bResult = false;
- }
- return bResult;
- }
Add Comment
Please, Sign In to add comment