原创 LeetCode | 98. Validate Binary Search Tree

  題目: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The

原创 Pytorch | No module named 'torch.utils.tensorboard' 找不到tensorboard

  目的:使用tensorboard可視化Pytorch模型 進展:Pytorch1.1.0版本,並使用pip install tensorboard 報錯信息:No module named 'torch.utils.tensorboa

原创 C/C++ | gettimeofday和clock的計時應用及區別

  C++程序中通常需要計時來評估性能及耗時。耗時可以幫助我們分配計算資源,找到優化重點。   實驗背景: 在多線程的C++程序中,使用clock計時和gettimeofday計時的數據不一致,那麼,哪個函數統計了正確的數據呢?它們分別統

原创 LeetCode | 91. Decode Ways

  題目: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2

原创 LeetCode | 97. Interleaving String

  題目: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Input: s1 = "aabcc", s2

原创 LeetCode | 107. Binary Tree Level Order Traversal II

  題目: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, le

原创 CV | SRGAN論文筆記:Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network

  題外話 時隔一年多,距離第一篇SRCNN 超分系列的文章再更新 >.< 隨着22個月的過去,超分在工業界的落地趨勢逐漸明朗,讓我們一起來回顧超分辨率這個領域又一經典里程碑式的方法——基於生成式對抗網絡的超分辨率網絡 SRGAN。  

原创 隨筆 | 近期工作感悟

  轉眼,又歷歷在目,這篇主要用來記錄我的職場感悟,希望可以提醒自己,不忘初心。   態度向 1. 對於新的領域,新的方向,要勇往直前,保持興奮。 因爲本科、研究生,包括工作初期都是接觸計算機視覺比較多,我會養成一種思維慣性:其他方向的內

原创 LeetCode | 79. Word Search

  題目: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of seq

原创 LeetCode | 87. Scramble String

  題目: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursivel

原创 C/C++ | g++ 編譯指定了鏈接庫路徑,仍報錯找不到函數:Undefined reference

  題外話:這次是被編譯順序坑了很久。。。還是基礎學的不紮實   實驗背景:用g++編譯cpp文件,依賴於opencv。待編譯的cpp文件cv_test.cpp內容如下: #include "opencv2/core/mat.hpp"

原创 LeetCode | 94. Binary Tree Inorder Traversal

  題目: Given a binary tree, return the inorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \

原创 LeetCode | 84. Largest Rectangle in Histogram

  題目: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the

原创 LeetCode | 90. Subsets II

  題目: Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).

原创 LeetCode | 119. Pascals Triangle II

  題目: Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row i