自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 《算法概论》第八章NP完全问题部分习题解

8.10利用推广的方法证明NP-完全性。对以下每个问题,通过证明它是本章某个NP-完全问题的推广说明它是NP-完全的。

2017-07-06 12:52:37 5446

原创 LeetCode【413】Arithmetic Slices

leetcode

2017-06-21 09:25:58 338

原创 LeetCode【576】 Out of Boundary Paths

There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross the grid boundary in four directions (up, down, left, right). However,

2017-06-11 12:34:17 355

原创 LeetCode【514】Freedom Trail

In the video game Fallout 4, the quest “Road to Freedom” requires players to reach a metal dial called the “Freedom Trail Ring”, and use the dial to spell a specific keyword in order to open the door.

2017-06-05 00:38:56 300

原创 LeetCode【472】 Concatenated Words

Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word is defined as a string that is comprised entir

2017-05-30 22:15:28 343

原创 LeetCode【410】 Split Array Largest Sum

Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m suba

2017-05-21 22:11:26 213

原创 LeetCode[338]Counting Bits

Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array. Example: For

2017-05-15 21:10:42 256

原创 LeetCode[517] Super Washing Machines

You have n super washing machines on a line. Initially, each washing machine has some dresses or is empty. For each move, you could choose any m (1 ≤ m ≤ n) washing machines, and pass one dress of

2017-05-07 17:13:09 478

原创 LeetCode Algorithm【547 】Friend Circles

LeetCode

2017-05-01 13:08:19 476

原创 LeetCode部分题解

LeetCode Algorithm部分.502【502】 IPO Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase it

2017-04-23 09:47:23 540

原创 LeetCode部分题解

LeetCode Algorithm部分.399【399】 Evaluate Division Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is

2017-04-17 09:29:36 241

原创 LeetCode部分题解

LeetCode Algorithm部分.399【399】 Evaluate Division Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given

2017-04-09 23:49:36 261

原创 LeetCode部分题解

LeetCode Algorithm部分.515【515】 Find Bottom Left Tree Value You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3

2017-04-03 11:04:54 196

原创 LeetCode部分题解

LeetCode Algorithm部分.513【513】 Find Bottom Left Tree Value Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1

2017-04-03 11:02:24 245

原创 LeetCode部分题解

LeetCode Algorithm部分.542【542】01 Matrix Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Example 1: Input

2017-03-26 12:36:26 226

原创 LeetCode Algorithm部分

LeetCode Algorithm部分.004【004】 Search a 2D Matrix II Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).

2017-03-20 00:33:55 344

原创 LeetCode部分题解

LeetCode部分题解

2017-03-12 23:35:17 536

原创 LeetCode部分题解

LeetCode 部分题解

2017-03-05 23:25:31 295

原创 LeetCode部分题解

LeetCode Algorithm部分【145】Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes’ values. For example: Given binary tree {1,#,2,3}, 1

2017-02-26 00:20:18 310

空空如也

空空如也

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

TA关注的人

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