原创 LeetCode No.155 Min Stack

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push elem

原创 LeetCode No.90 Subsets II

Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: The solution s

原创 LeetCode No.447 Number of Boomerangs

Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such tha

原创 LeetCode No.375 Guess Number Higher or Lower II

We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number

原创 LeetCode No.384 Shuffle an Array

Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; So

原创 Python初學者實用技巧

交換變量 Python 123456789x = 6y = 5 x, y = y, x print x>>> 5print y>>> 6if 語句在行內Python 1

原创 小議:人工智能

轉載自:http://blog.csdn.net/flylittlehorse/article/details/60824886 2014年,大數據開始成爲熱詞,在神州大地的各大媒體,論壇,會議上出現。如果有人恰好在你身邊談論大數

原创 521. Longest Uncommon Subsequence I

Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The long

原创 關於vim的基礎知識

一、基礎知識 Vim最令人混淆的特徵之一是她擁有3種模式. 1.  插入模式: 輸入文本 2.  命令模式:執行命令. 也稱爲正常模式. 3.  Ex模式: 執行冒號 命令   插入模式並不是缺省的模式,您必須按下i來進入插入模式,在屏

原创 539. Minimum Time Difference

Given a list of 24-hour clock time points in "Hour:Minutes" format, find the minimum minutes difference between any tw

原创 《算法概論》第八章習題 8-15

題目(8-15): 最大公共子圖 證明如下問題是NP-完全的: 輸入:兩個圖G1 = (V1, E1) 和G2 = (V2, E2) :預算b。 輸出:兩個節點集合V1’∈ V1 和V2’∈ V2和它們被移除後,將在兩圖中分別留下至少b

原创 LeetCode No.17 Letter Combinations of a Phone Number

Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to

原创 VS快捷鍵

1.回到上一個光標位置/前進到下一個光標位置 1)回到上一個光標位置:使用組合鍵“Ctrl + -”; 2)前進到下一個光標位置:“Ctrl + Shift + - ”。 2.複製/剪切/刪除整行代碼 1)如果你想複製一整行代碼,只需將

原创 LeetCode No.221 Maximal Square

Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Fo

原创 sublime text 常用插件和配置

原文鏈接:http://m.blog.csdn.net/article/details?id=50475251 此文件目錄中文件主要是關於sublime的插件配置,快捷鍵配置,主題和字體配置。 插件列表 所有插件都可以使用Pa