原创 真實的哈佛

哈佛校園裏,不見華服,不見LV包,不見化妝,不見着名牌的教授學生,不見豪車接美女,更不見晃裏晃盪,只有匆匆的腳步,堅實地寫下人生的篇章。哈佛不是神話,哈佛只是一個證明,人的意志,精神,抱負,理想的證明。 日前,兩張美國哈佛大學圖書館

原创 Leetcode - 15. 3Sum

題目介紹 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique trip

原创 Leetcode - 19. Remove Nth Node from end of List

問題簡介 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked

原创 Leetcode - 88. Merge Sorted Array

題目簡介 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may

原创 Leetcode - 4. Median of Two Sorted Arrays

題目簡介 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted a

原创 Leetcode - 14. Longest Common Prefix

題目介紹 Write a function to find the longest common prefix string amongst an array of strings. 思路 以第一個字符串作爲參照,與其他字符

原创 Leetcode-13. Roman to Integer

問題介紹 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.

原创 Leetcode-349 Intersection of Two Arrays

題目介紹 Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], num

原创 臉部各部位長痘痘的原因

1. 額頭長痘:  原因:壓力大,心火旺,脾氣差,常生氣,造成心火和血液循環有問題。  改善:早睡早起,多喝水。  2.太陽穴:  太陽穴附近出現小粉刺,顯示你的飲食中包含了過多的加工食品,造成膽囊阻塞,需要趕緊行體內大掃除 ;在經絡

原创 Leetcode-12. Integer to Roman

問題介紹 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.

原创 思想決定高度,行動決定寬度

      注:這是一篇轉載的文檔,寫的很好,每次讀完後都會感到一種積極的力量。      有人工作,有人上學,大家千萬不要錯過這篇文章,相信多年以後,再來看這篇文章,一定有不同的感覺。 正如"打工皇帝"唐駿說:"我覺得有兩種人不要跟

原创 SpatialSpark和SparkDistributedMatrix調研小結

最近接觸了github上兩個基於spark的項目,現在做一個小結,這兩個項目的鏈接會在下面具體介紹中給出。 SpatialSpark SpatialSpark是一個基於Spark用來處理空間數據的一個分佈式數據處理系統。在系統中,

原创 Install Ruby on rails on Ubuntu 14.04 LST

安裝rails歷經兩天,看了網上許多教程,最後以該博客爲準嘗試安裝終於成功。安裝過程中有某些地方不一致,但大體相同。在本文最後部分將會介紹安裝過程中遇到的一些問題與解決辦法。 安裝過程 1. Install Git and Cu

原创 Leetcode - 38. Count and Say

38. Count and Say 題目簡介 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21,

原创 Leetcode - 5. Longest Palindromic Substring

題目 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1