自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

TooSchoolForCool

Sunstrider :)

  • 博客(13)
  • 问答 (1)
  • 收藏
  • 关注

原创 如何用 Python 编写 Alfred Workflow

如何用 Python 编写 Alfred Workflow写这篇文章记录一下我第一次开发 Alfred Workflow 的历程,希望能给后来者提供一个真正有帮助的教程。在这边文章里,我会讲述我如何在Alfred里开发一个workflow,来实现LeetCode上的问题和Topic的检索功能。具体的代码,说明和演示可以访问我的 Github.先贴个一个简单的示例图 选择Binar...

2018-05-19 14:28:36 3521

原创 LeetCode 140. Word Break II Solution 题解

Leetcode 140. Word Break II@(LeetCode)[LeetCode | Algorithm | DP | Backtracking | DFS] Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s ...

2018-05-15 04:56:03 940

原创 LeetCode 95. Unique Binary Search Trees II

LeetCode 95. Unique Binary Search Trees II@(LeetCode)[LeetCode | Algorithm] Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1 … n.Input: 3...

2018-05-12 16:25:29 196

原创 Leetcode 264. Ugly Number II

Leetcode 264. Ugly Number II@(LeetCode)[LeetCode | Algorithm | DP] Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. ...

2018-05-11 14:19:05 174

原创 Leetcode 124. Binary Tree Maximum Path Sum

Leetcode 124. Binary Tree Maximum Path Sum Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in ...

2018-03-26 13:08:41 165

原创 Leetcode 236. Lowest Common Ancestor of a Binary Tree

Leetcode 236. Lowest Common Ancestor of a Binary Tree@(LeetCode)[LeetCode, Algorithm, Tree] Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. Accord...

2018-03-26 10:30:23 193

原创 Leetcode 116. Populating Next Right Pointers in Each Node

Leetcode 116. Populating Next Right Pointers in Each Node@(LeetCode)[LeetCode | Algorithm] Given a binary tree, populate each next pointer to point to its next right node. If there is no next ri...

2018-03-26 05:06:00 177

原创 Leetcode 96. Unique Binary Search Trees

Leetcode 96. Unique Binary Search Trees Given n, how many structurally unique BST’s (binary search trees) that store values 1…n? For example, Given n = 3, there are a total of 5 unique BST...

2018-03-25 05:29:18 155

原创 Leetcode 209. Minimum Size Subarray Sum

Leetcode 209. Minimum Size Subarray Sum@(Algo Probs)[LeetCode, Algorithm, Two Pointers] Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous su...

2017-05-07 21:36:55 297

原创 Leetcode 560. Subarray Sum Equals K

Leetcode 560. Subarray Sum Equals K@(Algo Probs)[LeetCode, Algorithm] Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k...

2017-05-06 15:26:04 755

原创 Leetcode 75. Sort Colors

Leetcode 75. Sort Colors Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. ...

2017-05-06 13:47:13 411

原创 Leetcode 229. Majority Element II

Leetcode 229. Majority Element II Given an integer array of size n, find all elements that appear more than ⌊n/3⌋⌊n/3⌋\lfloor n/3 \rfloor times. The algorithm should run in linear time and in O(1)...

2017-05-04 20:45:18 281

原创 C语言 free() 内存释放问题

我们知道free(p)是释放掉p所指向的内存,那么是释放了多长的一段内存呢?我们的系统是如何知道要释放多少内存的呢?下面我来讲讲这个问题。请看下面一段代码

2014-05-01 20:25:37 7149 1

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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