摘要:
https://leetcode.com/problems/first-bad-version/description/ You are given an API bool isBadVersion(version) which will return whether version is bad. 阅读全文
摘要:
Given a integer dictionary A of unknown size, where the numbers in the dictionary are sorted in ascending order, determine if a given target integer T 阅读全文
摘要:
https://leetcode.com/problems/merge-sorted-array/description/Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space... 阅读全文
摘要:
https://leetcode.com/problems/move-zeroes/description/Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, ... 阅读全文
摘要:
https://leetcode.com/problems/sort-colors/description/Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent,with the colors in the order re... 阅读全文