You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static int rank(int key, int[] a) {
if(key>a[a.length-1])return a.length; //如果key打印a中的每一个元素,则返回a的长度
return rank(key, a, 0, a.length - 1);
}这是修改后的代码
The text was updated successfully, but these errors were encountered:
public static int rank(int key, int[] a) {
if(key>a[a.length-1])return a.length; //如果key打印a中的每一个元素,则返回a的长度
return rank(key, a, 0, a.length - 1);
}这是修改后的代码
The text was updated successfully, but these errors were encountered: