原创 【Leetcode-Easy-21】Merge Two Sorted Lists
【Leetcode-Easy-21】Merge Two Sorted Lists 題目 Merge two sorted linked lists and return it as a new list. The new list
原创 入棧序列的所有出棧序列
入棧序列的所有出棧序列 2017-09 塗鴉移動的電話面試題目 題目 一個入棧序列的所有出棧序列 思路 初級方法: 求出這個入棧序列的全排列,然後驗證每一個序列是否是出棧序列。 考查點: 字符串的全排列,參考 劍指offer
原创 【Leetcode-Easy-283】Move Zeroes
【Leetcode-Easy-283】Move Zeroes 題目 Given an array nums, write a function to move all 0’s to the end of it while main
原创 【Leetcode-Easy-169】 Majority Element
【Leetcode-Easy-169】 Majority Element 題目 Given an array of size n, find the majority element. The majority element i
原创 Leetcode題目彙總-Java實現
Leetcode題目彙總-Java實現
原创 【Leetcode-Easy-53】Maximum Subarray
【Leetcode-Easy-53】Maximum Subarray 題目 Find the contiguous subarray within an array (containing at least one number)
原创 劍指offer--Java實現
劍指offer面試題彙總-Java實現 《劍指offer》面試題 Markdown 版本,包含題目、分析及代碼----Github 地址 文章目錄劍指offer面試題彙總-Java實現[《劍指offer》面試題 Markdown
原创 【Leetcode-easy-448】Find All Numbers Disappeared in an Array
【Leetcode-easy-448】Find All Numbers Disappeared in an Array 題目 Given an array of integers where 1 ≤ a[i] ≤ n (n = s
原创 【Leetcode-Easy-581】Shortest Unsorted Continuous Subarray
【Leetcode-Easy-581】Shortest Unsorted Continuous Subarray 題目 Given an integer array, you need to find one continuous
原创 Lintcode高頻題目彙總-Java實現
Lintcode高頻題目彙總-Java實現
原创 【Leetcode-Easy-101】 Symmetric Tree
【Leetcode-Easy-101】 Symmetric Tree 題目 Given a binary tree, check whether it is a mirror of itself (ie, symmetric ar
原创 【Leetcode-Easy-206】Reverse Linked List
【Leetcode-Easy-206】Reverse Linked List 題目 Reverse a singly linked list. 思路 雙指針 程序 /** * Definition for singly-link
原创 【Leetcode-Easy-70】Climbing Stairs
【Leetcode-Easy-70】Climbing Stairs 題目 You are climbing a stair case. It takes n steps to reach to the top. Each time
原创 【Leetcode-Easy-198】House Robber
【Leetcode-Easy-198】House Robber 題目 You are a professional robber planning to rob houses along a street. Each house
原创 【Leetcode-Easy-121】Best Time to Buy and Sell Stock
【Leetcode-Easy-121】Best Time to Buy and Sell Stock 題目 Say you have an array for which the ith element is the price