摘要:
Question:Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted... 阅读全文
摘要:
Question:Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and th... 阅读全文
摘要:
Question:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice i... 阅读全文
摘要:
Question:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra sp... 阅读全文