原创 一葉障目 —— docker
本篇文章來自docker官方文檔的翻譯 主要內容包括docker的作用,架構,底層技術概覽 Docker overview 大約閱讀時間:10 Docker是一個用於開發,交付和運行應用程序的開放平臺。 Docker使您能夠將應用
原创 283. 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
原创 263. Ugly Number
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime fa
原创 26. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new len
原创 快速排序算法
http://blog.csdn.net/morewindows/article/details/6684558 整體思路 先把一個數組的第一個數作爲基準 從數組尾向前找比基準小的數,找到後換位, 然後從數組頭向後找比基準大
原创 237. Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Suppos
原创 217. Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any valu
原创 空間配置器allocator
先解決一個坑 allocator 在源碼剖析的第二章,便是講的allocator,(第一次看的時候一臉蒙B) 因爲所有的STL的操作對象都存放在容器內,而容器一定要配置空間以置放資料,都要用到allocator SGI標準的
原创 242. Valid Anagram
Given two strings s and t, write a function to determine if t is an anagram of s. 看一個數是不是另一個數的anagram anagram :組
原创 204. Count Primes
Description: Count the number of prime numbers less than a non-negative number, n. 計算比N小的所有質數的個數 這道題花了好多時間,數學真實博大精深
原创 203. Remove Linked List Elements
Remove all elements from a linked list of integers that have value val. Example Given: 1 –> 2 –> 6 –> 3 –> 4 –> 5
原创 171. Excel Sheet Column Number
Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its correspon
原创 226. Invert Binary Tree
Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9
原创 189. Rotate Array
Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7]
原创 27. Remove Element
Given an array and a value, remove all instances of that value in place and return the new length. 給定一個數組和一個值,刪除該值