Blind 75 and Cracking the Coding Interview: 189 Programming Questions and Solutions (Cracking the Interview & Career) 持續精進與輸出分享:)
大家好:) 原本預計是要複習之前的內容,但又覺得應該向前邁進,雖然很擔心但還是試看看><。主要方向為後續prepare語言之前只有用過python...
class Solution{ // 438 O(N) O(1) public: vector<int> findAnagrams(s...
class Solution {//904 O(N) O(1) 因為只有兩種,還不用雜湊表 public: int totalFruit(vector...
class Solution { public: int longestOnes(vector<int>& a, int k) {...
class Solution {//1493 O(N) O(1) public: int longestSubarray(vector<int&...
class Solution{//34 O(LogN) O(1) public: vector<int> searchRange(vec...
class Solution{ public: int search(vector<int>& a,int t){//主函式;...
範例一:[3,4,5,1,2]l=0,r=4 → m=2,a[m]=5,a[r]=2 ⇒ a[m]>a[r] → l=3l=3,r=4 → m=3,a[...
class Solution{//162.O(log N) O(1) public: int findPeakElement(vector<in...
class Solution{//875 O(Nlogm) O(1) public: int minEatingSpeed(vector<int...