c code to java converter
#include <stdio.h>
convert java to c
class Solution {
public int findMinArrowShots(int[][] points) {
Arrays.sort(points, (a,b) -> Integer.compare(a[1], b[1]));
int arrow = 1;
int end = points[0][1];
for(int i = 1;i < points.length;i++){
if(points[i][0] > end){
arrow++;
end = points[i][1];
}
}
return arrow;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us