摘要:
二分查找 原博: here 1 //二分查找 2 int binarySearch(int arr[], int len, int key) 3 { 4 int left = 0; 5 int right = len - 1; 6 int mid; 7 8 ... 阅读全文
posted @ 2017-04-25 22:08 蓝空 阅读(311) 评论(0) 推荐(0) 编辑
|
||
摘要:
二分查找 原博: here 1 //二分查找 2 int binarySearch(int arr[], int len, int key) 3 { 4 int left = 0; 5 int right = len - 1; 6 int mid; 7 8 ... 阅读全文
posted @ 2017-04-25 22:08 蓝空 阅读(311) 评论(0) 推荐(0) 编辑
摘要:
Binary Tree Restoring Time Limit: 1 Second Memory Limit: 65536 KB Special Judge Given two depth-first-search (DFS) sequences of a bina... 阅读全文
posted @ 2017-04-25 21:47 蓝空 阅读(305) 评论(0) 推荐(0) 编辑
摘要:
Yet Another Game of Stones Time Limit: 1 Second Memory Limit: 65536 KB Alice and Bob are playing yet another game of stones. The rules of thi... 阅读全文
posted @ 2017-04-25 16:55 蓝空 阅读(165) 评论(0) 推荐(0) 编辑 |
||