原创 LeetCode 1.Two-Sum

Two Sum Difficulty: Easy Given an array of integers, return indices of the two numbers such that they add up to a s

原创 如何寫出一個正確的二分查找

文章目錄1.二分查找2.二分查找的變種查找第一個與key相等的元素查找最後一個與key相等的元素查找最後一個等於或者小於key的元素查找最後一個小於key的元素查找第一個等於或者大於key的元素:查找第一個大於key的元素總結 1.二