原创 motion planning分類

最近看論文,整理了兩個從不同角度的motion planning的分類。 這是比較流行的一種分類方法,將motion planning分爲path和trajectory。 path planning側重的是起點到終點的路徑規劃,

原创 4.Valid Palindrome

Description: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring

原创 6. Reverse Words in a String

Question: Given an input string s, reverse the string word by word. For example, given s = “the sky is blue”, return

原创 2. Two Sum II – Input array is sorted

Question: Similar to Question [1. Two Sum], except that the input array is already sorted in ascending order. solutio

原创 1. Two Sum

Question: Given an array of integers, find two numbers such that they add up to a specific target number. The functio

原创 連續狀態空間離散化的matlab實現

假設一個連續狀態空間等式爲:(x)=Ax+Bu 忽略輸出方程,因爲離散後的輸出方程與連續時一樣 在matlab中,[G,H]=c2d(A,B,Ts),Ts是採樣週期 得到離散化狀態空間等式:x(k+1)=Gx(k) + Hu(k)

原创 華碩筆記本重裝win10

1.準備一個空U盤 下載ultro,將系統鏡像刻錄到U盤中 具體步驟 2.將電腦設置成USB啓動 具體步驟 3.裝系統 插入U盤,開機,按ESC進入,選擇USB,然後選選選就完事了。

原创 19. Remove Nth Node From End of List

Decription: Given a linked list, remove the n-th node from the end of list and return its head. My solution: 超時了 就是賊蠢

原创 28. Implement strStr()

Description: Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

原创 14. Longest Common Prefix

Description: Write a function to find the longest common prefix string amongst an array of strings. If there is no co

原创 Majority Element

Description: Given an array of size n, find the majority element. The majority element is the element that appears m

原创 Find All Numbers Disappeared in an Array

Description: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others

原创 二叉樹打印

二叉樹層次遍歷 已知頭結點head,進行層次遍歷,需要一個last節點和nlast節點。難點是知道何時換行。 last節點:表示正在打印的當前行的最右節點 nlast節點:表示下一行的最右節點 last==nlast時就換行 我們需

原创 隊列&&棧

基本性質: 棧:先進後出 隊列:先進先出 實現方式: 簡單的實現方式–數組 複雜的實現方式–鏈表 棧基本操作: pop操作 top或peek操作 push操作 size操作 隊列基本操作 push在隊頭加元素 pop在隊尾彈出一

原创 八大排序

1.冒泡排序 思想:兩兩比較,大的放後面,每一回都能得出最大值放在最後,然後開始新一輪。 解決:兩個for循環,第一個用於控制長度,第二個用於比較 時復:O(n*n) 代碼: class BubbleSort { public: