InterviewMap / CS-Interview-Knowledge-Map

Build the best interview map. The current content includes JS, network, browser related, performance optimization, security, framework, Git, data structure, algorithm, etc.
https://yuchengkai.cn/docs/frontend/
18.3k stars 2.57k forks source link

fix checkArray function in algorithm #162

Open wildskyf opened 6 years ago

wildskyf commented 6 years ago

但不太懂為什麼 array.length 不能為 2,就算是 2 也應該需要排序才是?