原创 【LeetCode】convert-sorted-link-to-binary-search-tree & convert-sorted-array-to-binary-search-tree

題幹 convert-sorted-link-to-binary-search-tree Given a singly linked list where elements are sorted in ascending order, c

原创 【LeetCode】binary-tree-level-order-traversal i&ii&zigzag

題幹 binary-tree-level-order-traversal Given a binary tree, return the level order traversal of its nodes’ values. (ie, f

原创 【LeetCode】partition-list

題幹 partition-list Given a linked list and a value x, partition it such that all nodes less than x come before nodes gre

原创 【LeetCode】populating-next-roght-pointers-in-each-node i&ii

題幹 populating-next-roght-pointers-in-each-node Given a binary tree struct TreeLinkNode { TreeLinkNode *left

原创 【LeetCode】triangle & pascals-triangle i&ii

題幹 triangle Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers

原创 【LeetCode】binary-tree-postorder-traversal

題幹 Given a binary tree, return the postorder traversal of its nodes’ values. For example: Given binary tree{1,#,2,3},

原创 【LeetCode】palindrome-partitioning i&ii

題幹 palindrome-partitioning i Given a string s, partition s such that every substring of the partition is a palindrome.

原创 【LeetCode】path-sum i&ii

題幹 path-sum i Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the

原创 【LeetCode】linked-list-cycle-ii

題幹 Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull. Follow up: Can you

原创 圖片測距實驗

實驗背景 本文是一個小實驗的結果,針對的問題是是否可以根據圖片交通的視頻得到汽車的行駛速度,更進一步其實是得到圖片上的某段實際距離。 這個問題有非常明確的問題定義,是計算機標定,屬於計算機圖形學的範疇。有一套理論,旋轉矩陣之類的東西。但

原创 【LeetCode】recorder-list

題幹 Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place wi