數(shù)據(jù)就緒: 阻塞: 調(diào)用IO方法的線程進(jìn)入阻塞狀態(tài) ssize_t recv(int sockfd, void *buf, size_t len, int flags); 非...
IP屬地:海南
數(shù)據(jù)就緒: 阻塞: 調(diào)用IO方法的線程進(jìn)入阻塞狀態(tài) ssize_t recv(int sockfd, void *buf, size_t len, int flags); 非...
有序數(shù)組的平方 題目鏈接:有序數(shù)組的平方[https://leetcode.cn/problems/squares-of-a-sorted-array/] 思路:雙指針法,數(shù)...
二分查找 題目鏈接:二分查找[https://leetcode.cn/problems/binary-search/] 思路:對于閉區(qū)間要注意判斷條件:while (left...