原创 Maven學習筆記(五)——生命週期與插件

目錄生命週期定義生命週期詳解三套生命週期clean生命週期default生命週期site生命週期命令行與生命週期插件目標插件綁定內置綁定自定義綁定插件配置命令行插件配置POM中插件全局配置POM中插件任務配置獲取插件信息在線插件信

原创 數據結構(八)——棧 in Java8

源碼 package java.util; /** * 棧是一個先進後出的數據結構,它繼承於Vector,那表明它是線程安全的。 * @since JDK1.0 */ public class Stack<E> ext

原创 Maven學習筆記(四)——倉庫

目錄倉庫定義倉庫佈局倉庫分類本地倉庫遠程倉庫中央倉庫私服快照版本從倉庫解析依賴的機制鏡像 倉庫定義 得益於座標機制,任何Maven項目使用任何一個構件的方式都是完全相同的。在此基礎上,Maven可以在某個位置可以統一存儲所有Mav

原创 Maven學習筆記(二)——入門

目錄POM主代碼測試代碼更多作用其他構建方案MakeAnt POM maven項目的核心就是pom.xml。POM(Project Object Model)定義了項目的基本信息,用於描述項目如何構建,聲明項目依賴等。 樣例如下:

原创 Maven學習筆記(一)——簡介

目錄Maven是什麼構建是什麼優點更多作用其他構建方案MakeAnt Maven是什麼 maven主要用做基於Java平臺的項目構建、依賴管理和項目信息管理。 構建是什麼 編譯、運行單元測試、生成文檔、打包和部署等工作。 優點

原创 LeetCode 167. Two Sum II - Input array is sorted

Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a speci

原创 LeetCode 153. Find Minimum in Rotated Sorted Array

153. Find Minimum in Rotated Sorted Array Medium 1413192FavoriteShare Suppose an array sorted in ascending order is rot

原创 LeetCode 141. Linked List Cycle

Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an intege

原创 LeetCode 151. Reverse Words in a String

Given an input string, reverse the string word by word.   Example 1: Input: "the sky is blue" Output: "blue is sky the

原创 LeetCode 48. Rotate Image

You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to r

原创 LeetCode 35. Search Insert Position

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it wou

原创 Node模塊(一)——request

最近與Node項目接觸的比較多,故決定介紹一些用到的node模塊,並附帶一些使用時的經驗。 首先用到的一個就是request,當在node中調用其他系統接口或進行一些交互時,所能採用的一種http/https請求方式。 簡單示例

原创 LeetCode 27. Remove Element

Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allo

原创 LeetCode 19. Remove Nth Node From End of List

Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->

原创 LeetCode 9. Palindrome Number

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Ex