![240](https://cdn2.jianshu.io/assets/default_avatar/3-9a2bcc21a5d89e21dafc73b39dc5f582.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
一個(gè)inorder traverse 的iteration: 先循環(huán)左邊孤里,左邊循環(huán)完循環(huán)右邊痴柔,但是右邊的node也要循環(huán)他的左邊捏鱼,所以要把循環(huán)左...
Coin Change Boundary: There may be no possible change, so in this scenar...
House Robber [2,1,1,2] => 并不是每隔一個(gè)加一就是最佳最佳問題=>考慮DP=>思考循環(huán)的關(guān)聯(lián)對(duì)于一個(gè)nums[i]: r...
我置侍!終于愉烙!成功在MAC下面把opencv4程序靜態(tài)編譯起來了议纯!先上compile的命令:g++ -std=c++11 main.cpp prep...
Best Time to Buy and Sell Stock 其實(shí)也算是DP晚缩,每次的結(jié)果和前一次的結(jié)果比較 Best Time to Buy ...
Subsets Bit manipulation and map can be useful aside from backtracking P...
Climbing Stairs Just Fibonacci. Dynamic Programming's space complexity c...
Combination Sum Most basic backtracking. The idea of begin position is e...
輸入值是指針考慮是不是NULL笼才, next是不是NULL輸入值是數(shù)組考慮長(zhǎng)度為0 Search a 2D Matrix II Instead o...