KirogiYi ARTS打卡:第二周

2019-03-31  本文已影响0人  NewPage

Algorithm(求最长子串的长度)


public int lengthOfLongestSubstring(String str) {
    int n = str.length(), ans = 0;
    int[] index = new int[128]; // current index of character
    for (int j = 0, i = 0; j < n; j++) {
       i = Math.max(index[str.charAt(j)], i);
       ans = Math.max(ans, j - i + 1);
       index[str.charAt(j)] = j + 1;
    }
    return ans;
}

Review (Restful概览)


Tip(Vue兼容360、ie浏览器)


一、关于babel-polyfill

二、关于es6-promise

Share(项目管理--关于会议的思考)

https://blog.csdn.net/CDUT100/article/details/88836890

上一篇 下一篇

猜你喜欢

热点阅读