Blind 75 and Cracking the Coding Interview: 189 Programming Questions and Solutions (Cracking the Interview & Career) 持續精進與輸出分享:)
class Solution { // review 1004 O(N) O(1) public: int longestOnes(vector&l...
#include <vector> class Solution { // review 1004 O(N) O(1) public:...
class Solution { // review 1493 O(N) O(1) public: int longestSubarray(vecto...
class Solution { // review 34 O(logN) O(1) public: vector<int> sea...
範例追蹤(a = [4,5,6,7,0,1,2], t = 0):初始 l=0 r=6 m=3 a[m]=7。a[l]<=a[m] 成立,0 不在 [...
空白與排版使人增加需要記憶的東西>< 希望可以內化XD 不然真的不喜歡打空格 突然覺得code真的需要複習,是不是可以拿readwise來用一...
感謝 跟33比起來 親民很多 轉幾次都是一個切點除非轉到原順序int m = l + ((r - l) >> 1); // 通用,免 l+r 溢位...
回顧一下 :1.最早開始想直接複習舊題2.但礙於進度考量,貿然改成往前衝衝衝,但衝到一個階段發現還是衝了,依然有複習的需求3.開始了複習及默背之旅4.不論是...
#include <vector> // review 153 O(log n) O(1) using namespace std; clas...
class Solution { // 162. O(log N) O(1) public: int findPeakElement(vector&l...