原创 LeetCode - Binary Tree Inorder Traversal

Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3},

原创 LeetCode - Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. For example, the longest substr

原创 LeetCode - Two Sum

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

原创 關於ROS

原文地址:http://www.ros.org/about-ros/ 機器人操作系統(ROS)是一個靈活的用於編寫機器人軟件的框架,它是一系列工具、庫,以及規範,致力於簡化在大多數機器人平臺上創建複雜和魯棒機器人行爲。 爲什麼?因爲

原创 一起來學UML(1)——UML建模工具Umbrello初體驗

一、UML UML是統一建模語言,是一種可視化的語言。本系列內容擬通過Umbrello工具一起來學UML。正向逆向工程均以C++代碼爲例。  (本文第一次上傳圖片時圖片都在本地,所以讀者們一直看不到圖片,這裏我重新整理了一下這篇文章) 二

原创 Dedecms生成sitemap.xml的簡單方法

0. 爲了便於理解,我們對www.shipinFM.com視頻FM網站進行分析 1. 在後臺核心->頻道模型->單頁文檔管理中,增加一個頁面,我們可以稱之爲XML網站地圖,內容如下圖所示,點擊保存。 2. {style}目錄下(默認是te

原创 一起來學設計模式(1)——單例模式

單例模式即Singleton模式,通過該模式,最多隻能創建該類的一個實例。 先看一下簡單的版本: /** * @file Singleton.h * @brief * @author Don Hao * @date 2011-9-1 1

原创 ecshop二次開發——爲用戶提供商品批註功能

需求: 1. 每個登錄的用戶在購物過程中的商品列表頁、商品詳細頁、購物車都可以對商品進行批註; 2. 要求1中的批註會顯示在訂單中每個商品項中; 3. 用戶每次登陸之後清除上次的批註。 修改方法: 【1】增加兩個表: -- ------

原创 LeetCode - Gray Code

The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative in