https://github.com/skills/introduction-to-github.git #1239
Closed
vishalrawat80
started this conversation in
Campus Ambassador and CA leaderboard
Replies: 1 comment
-
@vishalrawat80 any queries ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
static boolean canAttend(int[][] arr) {
Arrays.sort(arr,(a,b)->a[0]-b[0]);
for(int i = 0;i<arr.length-1;i++){
if(arr[i][1] > arr[i+1][0]){
return false;
}
}
return true;
Beta Was this translation helpful? Give feedback.
All reactions