原创 LeetCode OJ 系列之26 Remove Duplicates from Sorted Array --Python

Problem: Given a sorted array, remove the duplicates in place such that each element appear only once and return the

原创 LeetCode OJ 系列之78 Subsets --Python

Problem: Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in

原创 微信小程序實戰之菜譜小程序

最近突發奇想,想要自己搞個小程序玩兒玩兒,但是鑑於自己是搞後端服務器出身,對於偏前端的微信小程序開發實在是一知半解,尤其是對於css類樣式相關,更是無從下手,於是乎,只能從晚上找了一個demo,對其進行了一番改造,然後進行上線,也算是基本

原创 LeetCode OJ 系列之75 Sort Colors --Python

Problem: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are ad

原创 LeetCode OJ 系列之62 Unique Paths --Python

Problem: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot

原创 LeetCode OJ 系列之287 Find the Duplicate Number --Python

Problem: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that

原创 LeetCode OJ 系列之66 Plus One --Python

Problem: Given a non-negative number represented as an array of digits, plus one to the number. The digits are sto

原创 LeetCode OJ 系列之121 Best Time to Buy and Sell Stock --Python

Problem: Say you have an array for which the ith element is the price of a given stock on day i. If you were only pe

原创 LeetCode OJ 系列之1 Two Sum --Python

Problem: Given an array of integers, find two numbers such that they add up to a specific target number. The functio

原创 LeetCode OJ 系列之219 Contains Duplicate II --Python

Problem: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the

原创 LeetCode OJ 系列之217 Contains Duplicate --Python

Problem: Given an array of integers, find if the array contains any duplicates. Your function should return true if an

原创 LeetCode OJ 系列之73 Set Matrix Zeroes --Python

Problem: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Answer:cla

原创 LeetCode OJ 系列之122 Best Time to Buy and Sell Stock II --Python

Problem: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm

原创 LeetCode OJ 系列之58 Length of Last Word --Python

Problem: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length

原创 LeetCode OJ 系列之65 Valid Number --Python

Problem: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => fal