自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

浮生琴弦

ONE is all.

原创 PHP Web Development with Laravel

LAMP Stack Linux Apache MySQL PHP

2016-12-01 16:59:43

阅读数 199

评论数 0

原创 Technical Interview Questions

算法面试题集锦。Google, Indeed等公司面试面经。

2016-11-12 10:25:59

阅读数 378

评论数 0

原创 Python Web Development with Flask

1. Flask1.1 How Flask Routing Works…2. Flask-Admin…3. Flask-SQLAlchemy…AlembicQ1: How to clear history and run all migrations from the beginning?A1: ...

2016-11-10 19:29:57

阅读数 294

评论数 0

原创 [Git] Common Usage

rebaseBefore: “This branch is 3 commits behind octantis:master.” git fetch upstream git rebase upstream/master git push origin master After:...

2016-10-24 10:08:01

阅读数 427

评论数 0

原创 LeetCode 487. Max Consecutive Ones II

LeetCode 487. Max Consecutive Ones II

2017-01-15 21:19:06

阅读数 838

评论数 0

原创 LeetCode 485. Max Consecutive Ones

LeetCode 485. Max Consecutive Ones

2017-01-15 21:16:20

阅读数 351

评论数 0

原创 LeetCode 482. License Key Formatting

LeetCode 482. License Key Formatting

2017-01-08 22:25:31

阅读数 408

评论数 0

原创 LeetCode 456. 132 Pattern

LeetCode 456. 132 Pattern

2017-01-08 22:21:53

阅读数 198

评论数 0

原创 LeetCode 476. Number Complement

LeetCode 476. Number Complement

2017-01-08 21:32:53

阅读数 674

评论数 0

原创 LeetCode 481. Magical String

LeetCode 481. Magical String

2017-01-08 21:15:05

阅读数 607

评论数 0

原创 LeetCode 480. Sliding Window Median

LeetCode 480. Sliding Window Median

2017-01-08 21:10:19

阅读数 883

评论数 0

原创 LeetCode 473. Matchsticks to Square

LeetCode 473. Matchsticks to Square

2016-12-18 21:29:16

阅读数 746

评论数 0

原创 LeetCode 472. Concatenated Words

LeetCode 472. Concatenated Words

2016-12-18 21:24:07

阅读数 2062

评论数 0

原创 LeetCode 477. Total Hamming Distance

LeetCode 477. Total Hamming Distance

2016-12-18 11:44:15

阅读数 247

评论数 0

原创 LeetCode 461. Hamming Distance

LeetCode 461. Hamming Distance

2016-12-18 11:41:22

阅读数 688

评论数 0

原创 LeetCode 474. Ones and Zeroes

LeetCode 474. Ones and Zeroes

2016-12-11 13:54:24

阅读数 708

评论数 0

原创 LeetCode 475. Heaters

LeetCode 475. Heaters

2016-12-11 13:24:11

阅读数 599

评论数 0

原创 LeetCode 468. Validate IP Address

LeetCode 468. Validate IP Address

2016-12-11 11:29:20

阅读数 492

评论数 0

原创 PHP Type Hinting (类型提示)

概述 从PHP5开始,我们可以使用类型提示来指定定义函数时,函数接收的参数类型。如果在定义函数时,指定了参数的类型,那么当我们调用函数时,如果实参的类型与指定的类型不符,那么PHP会产生一个致命级别的错误(Catchable fatal error)。http://www.gy0929.com/...

2016-12-09 11:07:25

阅读数 576

评论数 0

原创 LeetCode 434. Number of Segments in a String

Problem StatementCount the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.For example...

2016-12-04 11:59:59

阅读数 432

评论数 0

原创 LeetCode 463. Island Perimeter

Problem Statement(Source) You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells ar...

2016-12-03 11:34:50

阅读数 133

评论数 0

转载 Python中的多继承

Python和C++一样,支持多继承。概念虽然容易,但是困难的工作是如果子类调用一个自身没有定义的属性,它是按照何种顺序去到父类寻找呢,尤其是众多父类中有多个都包含该同名属性。class P1 #(object): def foo(self): prin...

2016-11-25 12:01:04

阅读数 324

评论数 0

原创 [TODO]LeetCode 37. Sudoku Solver

Problem Statement(Source) Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'...

2016-11-15 22:47:24

阅读数 220

评论数 0

原创 LeetCode 282. Expression Add Operators

Problem Statement(Source) Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unar...

2016-11-14 21:32:35

阅读数 254

评论数 0

原创 LeetCode 327. Count of Range Sum

Problem Statement(Source) Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive. Range sum S(i, j) is de...

2016-11-14 08:57:27

阅读数 328

评论数 0

原创 LeetCode 432. All O`one Data Structure

Problem Statement(Source) Implement a data structure supporting the following operations: Inc(Key) - Inserts a new key with value 1. Or increments an...

2016-11-13 23:32:10

阅读数 681

评论数 0

原创 LeetCode 381. Insert Delete GetRandom O(1) - Duplicates allowed

Problem Statement(Source) Design a data structure that supports all following operations in average O(1) time.Note: Duplicate elements are allowed. i...

2016-11-13 23:02:18

阅读数 172

评论数 0

原创 LeetCode 126. Word Ladder II

Problem Statement(Source) Given two words (beginWord and endWord), and a dictionary’s word list, find all shortest transformation sequence(s) from be...

2016-11-13 21:42:05

阅读数 610

评论数 0

原创 LeetCode 127. Word Ladder

(Source) Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to...

2016-11-13 19:00:07

阅读数 186

评论数 0

原创 LeetCode 44. Wildcard Matching

Problem Statement(Source) Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single chara...

2016-11-13 15:55:31

阅读数 147

评论数 0

原创 LeetCode 456. 132 Pattern

Problem Statement(Source) Given a sequence of n integers a1,a2,...,ana_1, a_2, ..., a_n, a 132 pattern is a subsequence ai,aj,aka_i, a_j, a_k such th...

2016-11-13 14:26:15

阅读数 809

评论数 0

原创 LeetCode 454. 4Sum II

Problem Statement(Source) Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] ...

2016-11-13 14:10:41

阅读数 692

评论数 0

原创 LeetCode 459. Repeated Substring Pattern

Problem Statement(Source) Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the su...

2016-11-13 11:37:19

阅读数 833

评论数 0

原创 LeetCode 455. Assign Cookies

Problem Statement(Source) Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one c...

2016-11-13 11:16:33

阅读数 546

评论数 0

原创 LeetCode 335. Self Crossing

Problem Statement(Source) You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metr...

2016-11-13 09:23:49

阅读数 176

评论数 0

原创 LeetCode 324. Wiggle Sort II

Problem Statement(Source) Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]....Example: (1) Given nu...

2016-11-13 08:41:36

阅读数 195

评论数 0

原创 LeetCode 458. Poor Pigs

Problem Statement(Source) There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. I...

2016-11-12 18:36:45

阅读数 1962

评论数 0

原创 LeetCode 457. Circular Array Loop

Problem Statement(Source) You are given an array of positive and negative integers. If a number n at an index is positive, then move forward n steps....

2016-11-12 18:10:46

阅读数 1458

评论数 0

原创 LeetCode 451. Sort Characters By Frequency

Problem Statement(Source) Given a string, sort it in decreasing order based on the frequency of characters.Example 1:Input: "tree"Output: &...

2016-11-12 17:43:36

阅读数 494

评论数 0

原创 LeetCode 450. Delete Node in a BST

Problem Statement(Source) Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node referen...

2016-11-12 17:34:29

阅读数 483

评论数 0

提示
确定要删除当前文章?
取消 删除