原创 LeetCode -- Recover Binary Search Tree

鏈接:http://leetcode.com/onlinejudge#question_99 原題: Two elements of a binary search tree (BST) are swapped by mistake. R

原创 LeetCode —— Word Search

鏈接:http://leetcode.com/onlinejudge#question_79 原題: Given a 2D board and a word, find if the word exists in the grid.

原创 LeetCode——Word Ladder II

鏈接:http://leetcode.com/onlinejudge#question_126 原題: Given two words (start and end), and a dictionary, find all short

原创 LeetCode —— Search for a Range

鏈接:http://leetcode.com/onlinejudge#question_34 原題: Given a sorted array of integers, find the starting and ending posi

原创 LeetCode —— Distinct Subsequences

鏈接:http://leetcode.com/onlinejudge#question_115 原題: Given a string S and a string T, count the number of distinct sub

原创 LeetCode —— 3SUM

3Sum 鏈接:http://leetcode.com/onlinejudge#question_15 原題: Given an array S of n integers, are there elements a, b, c in

原创 LeetCode —— Pow(x, n)

鏈接:http://leetcode.com/onlinejudge#question_50 原題: Implement pow(x, n) 思路:1次、2次、4次、8次這樣算上去,其實就是n的二進制表示形式。 當然要小心n是負數和底數

原创 LeetCode —— Combinations

鏈接:http://leetcode.com/onlinejudge#question_77 原題: Given two integers n and k, return all possible combinations of k 

原创 LeetCode —— Decode Ways

鏈接:http://leetcode.com/onlinejudge#question_91 原題: A message containing letters from A-Z is being encoded to numbers

原创 LeetCode —— Search in Rotated Sorted Array

鏈接:http://leetcode.com/onlinejudge#question_33 原題: Suppose a sorted array is rotated at some pivot unknown to you befo

原创 ENVI/IDL——Java-IDL Export Bridge

任務: 要把一堆遙感圖片每一個像素點所對應的波段值和經緯度等信息統一插入到數據庫中,以方便查詢管理。 技術試探: 上一篇博文http://blog.csdn.net/niaokedaoren/article/details/888162

原创 在ubuntu12.04LTS上編譯64位hadoop-2.3.0並安裝測試 單節點

先看一下安裝完之後的版本情況 $ java -version java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSp

原创 LeetCode —— Median of Two Sorted Arrays

鏈接:http://leetcode.com/onlinejudge#question_4 原題:There are two sorted arrays A and B of size m and n respectively. Find

原创 LeetCode -- Longest Palindromic Substring

鏈接:http://leetcode.com/onlinejudge#question_5 原題: Given a string S, find the longest palindromic substring in S. You

原创 LeetCode —— Set Matrix Zeroes

鏈接:http://leetcode.com/onlinejudge#question_73 原題: Given a m x n matrix, if an element is 0, set its entire row and c