Skip to content

Instantly share code, notes, and snippets.

@stevehenderson
Created March 29, 2017 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevehenderson/ec41ceedf48d9c3fb926008158e81cd2 to your computer and use it in GitHub Desktop.
Save stevehenderson/ec41ceedf48d9c3fb926008158e81cd2 to your computer and use it in GitHub Desktop.
public boolean firstLast6(int[] nums) {
if((nums[0]==6)||(nums[nums.length-1]==6) )
return true;
else
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment