1. Leetcode 78 Subsets

    Leetcode 78 Subsets Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If nums = [1,2,3], a solution is: [ [3], [1], [2], [1,2,3], [1,3]…


  2. Leetcode 160 Intersection of Two Linked Lists

    Leetcode 160 Intersection of Two Linked Lists Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 → a2 ↘ c1 → c2 → c3 ↗ B: b1 → b2 → b3 begin to intersect at node c1. Notes: If the…


  3. Leetcode 213 Home Robber II

    Leetcode 213 Home Robber II Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attention. This time, all houses at this place are arranged in…


  4. Leetcode 198 House Robber

    Leetcode 198 House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police…


  5. Short information about Live Photo

    In iOS 9.1, Apple make Live Photo API public. Now you can use API to playback live photo, upload live photo or whatever you want. Live Photos Live Photos is a feature of iOS 9 that allows users to capture and relive their favorite moments with richer context than…