原创 LeetCode Solutions : Unique Paths I & II

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

原创 LeetCode Solutions : Path Sum I & II

Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the valu

原创 LeetCode Solutions : Combination Sum I & II

Combination Sum  Given a set of candidate numbers (C) and a target number (T),  find all unique combinations in C wher

原创 SharePoint2013 Study Notes— How to Create a Event Receiver and Add Feature Event Receivers

In the followingprocedure, you’ll expand this project by adding a simple event handler (anevent receiver) to a list ins

原创 LeetCode Solutions : Sqrt(x)

Implement int sqrt(int x). Compute and return the square root of x. Java Solutions: public class Solution { pub

原创 JQuery Study Notes— A small demo for unfolding its content

1. Before unfolding: 2. After unfolding: 3. coding: <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xh

原创 LeetCode Solutions : Remove Duplicates from Sorted List I & II

Remove Duplicates from Sorted List  Given a sorted linked list, delete all duplicates such that each element appear on

原创 LeetCode Solutions : Search in Rotated Sorted Array

Suppose a sorted array is rotated at some pivot unknown to you beforehand.

原创 LeetCode Solutions : Search in Rotated Sorted Array II

Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time compl

原创 LeetCode Solutions : Remove Duplicates from Sorted Array I & II

Remove Duplicates from Sorted Array  Given a sorted array, remove the duplicates in place such that each element appear

原创 LeetCode Solutions : Container With Most Water

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines

原创 LeetCode Solutions : N-Queens

The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other

原创 LeetCode Solutions : N-Queens II

Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct so

原创 LeetCode Solutions : Search for a Range

Given a sorted array of integers, find the starting and ending position of

原创 LeetCode Solutions : Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top