11 2020 档案
摘要:题目描述 Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and
阅读全文
摘要:多进程和多线程简介 多进程概念 当前的操作系统都是多任务OS 每个独立执行的任务就是一个进程 多进程的优点 可以同时运行多个任务 程序因IO堵塞时,可以释放CPU,让CPU为其他程序服务 当系统有多个CPU时,可以为多个程序同时服务 多进程的缺点 太笨重,不好管理 太笨重,不好切换 多线程概念 一个
阅读全文
摘要:题目描述 Given an array A of integers, return true if and only if it is a valid mountain array. Recall that A is a mountain array if and only if: A.length
阅读全文