Caeoon

Results 29 comments of Caeoon

第303题C++代码: ```cpp class Solution { public: void rotate(vector& matrix) { // KEY WORD : 原地 // 先转置,再逆序 // 步骤1 : 沿对角线对原矩阵镜像 for(int i = 0;i

会超时,但是想往之前的套路里塞一塞 ```cpp class Solution { public: vector memo; // 备忘录 int superEggDrop(int k, int n) { // 自底向上的DP // 状态:鸡蛋,楼层 // 选择:碎没碎 memo = vector(k+1, vector(n+1)); // dp[i][j]表示:当前手握i个鸡蛋身处j层楼的最少扔鸡蛋次数是dp[k][j]。 vector dp(k+1,...

这题感觉就是考二叉树的遍历和构造,其实想清楚了也没什么难的,就是那些小细节折磨人

刷这篇是不是应该先刷动态规划?感觉有点儿吃力……

> Hi, did you find out the new website? Without the guide, I don't know what to do next. > > 嗨,你找到新网站了吗? 没有指南,我不知道下一步该怎么办。 Nope, I found their school's website: https://www.tu-darmstadt.de/...

这题好绕啊…………感觉这个应该是最接近跳跃游戏的那个代码了 ```c++ class Solution { static bool cmp(const vector& a, const vector& b){ if(a[0] == b[0]) return a[1] > b[1]; return a[0] < b[0]; } public: int videoStitching(vector& clips, int...

use colmap to write out the .nvm files

> What did you use? I use Colmap to get a Dense model and then use Colmap to create a mesh model directly. I want to use the refinement algorithm...

> you need also the camera intrinsics and extrinsics I use Colmap to create a .ply mesh model, and Colmap can export a camera.txt and images.txt which are camera intrinsics...