Created
September 17, 2023 09:06
-
-
Save h-hub/9bece4f5e14ef373b8cecd6f40646033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static boolean isElementExistProper(int[] ints, int b){ | |
int i=0; | |
while (true){ | |
if(ints.length==i) return false; | |
if(ints[i++]==b) return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment