原创 53. Maximum Subarray (Kadane算法 / 動態規劃 / 分治法)

Maximum Subarray 【題目】 Given an integer array nums, find the contiguous subarray (containing at least one number) which

原创 118. Pascal's Triangle(暴力求解法)

Pascal's Triangle 【題目】 Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. (翻譯:給定一個非

原创 【準備考試和論文,停更一段時間,請見諒】

博主考試將至,而且近期論文要做的事情比較多,所以博主要專心備考一段時間,近一段時間【每天一道變編程系列】可能要停更一段時間了,希望大家諒解!

原创 119. Pascal's Triangle II(楊輝三角簡單變形)

Pascal's Triangle II 【題目】 Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.

原创 3. Longest Substring Without Repeating Characters(HashSet + 雙指針)

Longest Substring Without Repeating Characters 【題目】 Given a string, find the length of the longest substring without re

原创 【每天一道編程系列-2018.2.18】(Ans)

【題目描述】There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted array

原创 數據庫事務的四種隔離級別

spring(數據庫)事務隔離級別分爲四種(級別遞減): 1、Serializable (串行化): 這是數據庫最高的隔離級別,這種級別下,事務“串行化順序執行”,也就是一個一個排隊執行。 這種級別下,“髒讀”、“不可重複讀”、“幻讀”都

原创 238. Product of Array Except Self

Product of Array Except Self 【題目】 Given an array nums of n integers where n > 1,  return an array outputsuch that outpu

原创 深入理解String,StringBuilder,StringBuffer

一. String 類 我們首先來看String類的實現源碼: public final class String implements java.io.Serializable, Comparable<String>, Cha

原创 博客遷移同步

我的博客即將同步至騰訊雲+社區,邀請大家一同入駐:https://cloud.tencent.com/developer/support-plan?invite_code=3ojt3uz7q20w4

原创 15. Three Sum

Three Sum 【題目】 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all

原创 121. Best Time to Buy and Sell Stock

Best Time to Buy and Sell Stock 【題目】 Say you have an array for which the i th element is the price of a given stock on

原创 35. Search Insert Position(二分法)

Search Insert Position 【題目】 Given a sorted array and a target value, return the index if the target is found. If not, r

原创 3. Longest Substring Without Repeating Characters(HashSet + 遍歷數組)

Longest Substring Without Repeating Characters 【題目】 Given a string, find the length of the longest substring without re

原创 1. Two Sum(HashMap儲存數組的值和索引)

Two Sum 【題目】 Given an array of integers, return indices of the two numbers such that they add up to a specific target.