/** * 循环有序的数组进行二分查找 * @param A */ public static int find(int[] A, int n, int target){ if(n<=0) return -1; int left = 0, right = n-1; while(left<=right Read More
posted @ 2020-08-29 20:38
soft.push("zzq")
Views(348)
Comments(0)
Diggs(0)
public static int strToInt(String str) { char[] s = str.trim().toCharArray(); int len = s.length; // 去除空格后长度为0则返回0 if (len == 0) return 0; int sign = Read More
posted @ 2020-08-29 13:33
soft.push("zzq")
Views(160)
Comments(0)
Diggs(0)
/** * * @param userId * @param period 窗口大小 * @param maxCount 最大频次限制 * @return */ public boolean isActionAllowed(String userId, int period, int maxCoun Read More
posted @ 2020-08-29 11:38
soft.push("zzq")
Views(259)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号