原创 【LeetCode】001 Nim Game 尼姆遊戲
【題目】 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one o
原创 【LeetCode】002 Single Number 尋找單身狗
【題目】 Given an array of integers, every element appears twice except for one. Find that single one. 在一個數組中,每個數字都有另一
原创 【LeetCode】006 Bitwise AND of Numbers Range 區間內整數按位與
【題目】 Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclu
原创 【LeetCode】003 Unique Paths 唯一路線
【題目】 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can
原创 【LeetCode】005 Implement strStr() 函數strStr()的功能實現
【題目】 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not par
原创 【LeetCode】007 Majority Element 少數服從多數
</pre><p></p><p>【題目】Given an array of size n, find the majority element.The majority element is the element that appear
原创 【LeetCode】004 First Bad Version 尋找老鼠屎
【題目】 You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest versi
原创 【LeetCode】010 番外篇 Dynamic Programming 動態規劃
【例一:最優路徑】 現有表格如上,從坐上走到右下(不重複不回頭),每步累加,求累加之和最大是多少。 解: 首先將最左和最上進行依次的累加。 再對空白部分進行填充,紅色空格代表當前空格,紅格對應表1的數字(如B2=9),分別加上上方數字
原创 【LeetCode】Best Time to Buy and Sell Stock 程序員炒股 part.2
【題目】 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to fin
原创 【MATLAB 學習筆記】 SimMechanics 流程攻略(1)
在尋找虛擬樣機的漫漫長路中,最終迴歸到了傳統的辦法——MATLAB 概念摘自百科: SimMechanics 立足於Simulink 之上,是進行控制器和對象系統跨領域/學科的研究分析環境。SimMechanics 爲多體動力機械系統及
原创 【Qt學習筆記】001 基礎篇——多窗口&登錄界面
多窗口程序教程鏈接 登錄對話框教程鏈接 由實例切入,打開新世界的大門,可能筆記做的不是很系統,但是是一個萌新不斷髮現的過程。 和VS的MFC的項目管理界面很類似,把各個類型的文件統一做了分類。 以main.cpp爲例 因爲其餘的程序都還
原创 【OpenGL 學習筆記】Nehe OpenGL + Visual Studio 2015 環境配置+ vs編譯基礎
前文: http://blog.csdn.net/wly95/article/details/50838719 大概介紹了OpenGL庫文件的下載,以及在visual studio 2015中的配置,並且調用了庫中的一些函數試運行了一遍。
原创 【LeetCode】009 Move Zeroes 移零
【題目】 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the
原创 【MATLAB 學習筆記】 SimMechanics 流程攻略(4)
Parker教授一共五集教學,我濃縮了一下,分成四章攻略,本章寫完,SimMechanics入門攻略也告一段路,準備繼續填其他的坑。 本章實例爲一個二級擺,並沒有太多新的知識點,主要是之前知識點融合的一個實例,重點屢一下各個模塊之間的座
原创 【LeetCode】011 Swap Nodes in Pairs 兩兩換位
【題目】 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should