原创 Hadoop文檔學習筆記

1.Hadoop集羣搭建 安裝 安裝Hadoop集羣通常要將安裝軟件解壓到集羣內的所有機器上。 通常,集羣裏的一臺機器被指定爲 NameNode,另一臺不同的機器被指定爲JobTracker。這些機器是masters。餘下的機器既

原创 LeetCode:DC,Greedy,Stack

5.Divide and Conquer 1.Majority Element Given an array of size n, find the majority element. The majority element i

原创 LeetCode:Tree

8.Tree 1.Maximum Depth of Binary Tree 求最大depth,很簡單: /** * Definition for a binary tree node. * public class TreeN

原创 LeetCode:Array

1.Array 1.Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function s

原创 LeetCode刷題(廢棄)

重要提示:該博客不再更新!最新文章請參考LeetCode系列! 爲了更好地鞏固算法知識,打下紮實的計算機基礎。。。好吧,實在編不下去了。。。其實是閒着沒事兒做,不如動動腦,刷刷題,被虐一虐。以前零零散散也刷了一些,這次我準備按專題

原创 關於Java的語言問題彙總

第一章 1.面向對象程序設計的基本特徵有哪些? 1.封裝 指將對象相關的狀態信息和行爲捆綁爲一個邏輯單元,通過封裝可以隱藏一個類的實現細節。 2.繼承 通過類之間的繼承,實現了代碼的複用,在子類中可以新增屬性和方法,並且可以

原创 LeetCode:LinkedList,Two Pointers,Binary Search

12.Linked List 1.Merge Two Sorted Lists Merge two sorted linked lists and return it as a new list. The new list sho

原创 阿里java規範整理

一、編程規約 (一) 命名規約 6.【強制】抽象類命名使用 Abstract 或 Base 開頭 ; 異常類命名使用 Exception 結尾 ; 測試類命名以它要測試的類的名稱開始,以 Test 結尾。 7.【強制】中括號是數組

原创 Java解惑

1.遞歸中的坑 之前在leetCode上刷題,問題傳送門:Binary Tree Paths,按理說一個很簡單的遞歸方法就能解決啊,爲什麼會出現問題呢?先po代碼: public class Solution { public L

原创 大型網站技術架構

第一篇:概述 傳統的企業應用系統主要面對的技術挑戰是處理複雜凌亂、千變萬化的所謂業務邏輯,而大型網站主要面對的技術挑戰是處理超大量的用戶訪問和海量的數據處理;前者的挑戰來自功能性需求,後者的挑戰來自非功能性需求;功能性需求也許還有

原创 LeetCode:DFS,BFS

10.Depth-first Search 1.Minimum Depth of Binary Tree Given a binary tree, find its minimum depth. The minimum depth

原创 LeetCode:Heap,Sort,Bit Manipulation,Backtracking

15.Heap 先來複習一下stack,queue,heap的特點: 1.stack:FILO(先進後出) 2.queue:FIFO(先進先出) 3.heap:兩個rules,1.the tree is complete,2

原创 關於mysql index

一、參考:What is an index in SQL? ,內容如下: An index is used to speed up searching in the database. MySQL have some good d

原创 LeetCode:Math

4.Math 1.Integer Break Given a positive integer n, break it into the sum of at least two positive integers and maxi

原创 LeetCode:Hash Table

9.Hash Table 1.Valid Sudoku 題目描述 public class Solution { public boolean isValidSudoku(char[][] board) {