自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ov流岚vo的专栏

LeetCode代码地址: https://github.com/flowingrain/LeetCode-java

  • 博客(12)
  • 资源 (3)
  • 收藏
  • 关注

原创 LeetCode139. Word Break

分析难度 中来源 https://leetcode.com/problems/word-break/思路题目Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separ...

2019-02-26 13:32:01 167

原创 LeetCode 138. Copy List with Random Pointer

分析难度 中来源 https://leetcode.com/problems/copy-list-with-random-pointer/思路Iterate the original list and duplicate each node. The duplicateof each node follows its original immediately.Iterate the ...

2019-02-25 15:26:07 204

原创 LeetCode 299. Bulls and Cows

分析难度 中来源 https://leetcode.com/problems/bulls-and-cows/题目You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is....

2019-02-24 11:15:32 209

原创 LeetCode 289. Game of Life

分析难度 中来源 https://leetcode.com/problems/game-of-life/思路To solve it in place, we use 2 bits to store 2 states: [2nd bit, 1stbit] = [next state, current state]00 dead (next) <- dead (current)...

2019-02-23 15:39:32 178

原创 LeetCode 275. H-Index II

分析难度 中来源 https://leetcode.com/problems/h-index-ii/题目Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the...

2019-02-22 09:58:05 178

原创 LeetCode 274. H-Index

分析难度 中来源 https://leetcode.com/problems/h-index/思路1If we have the function f ordered in decreasing order from the largest value to the lowest one, we can compute the h index as follows:思路2 //The...

2019-02-21 11:00:19 194

原创 LeetCode 260. Single Number III

分析难度 中来源 https://leetcode.com/problems/single-number-iii/两种方式,位运算或者利用HashSethttps://leetcode.com/problems/single-number-iii/discuss/68901/Sharing-explanation-of-the-solutionThe two numbers that ...

2019-02-20 17:15:45 187

原创 LeetCode 355. Design Twitter

分析难度 中来源 https://leetcode.com/problems/design-twitter/题目Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweet...

2019-02-19 20:08:24 306

原创 LeetCode 313. Super Ugly Number

分析难度 中来源 https://leetcode.com/problems/super-ugly-number/题目Write a program to find the nth super ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given prime...

2019-02-18 20:46:10 133

原创 LeetCode 264. Ugly Number II

分析难度 中来源 https://leetcode.com/problems/ugly-number-ii/题目Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.Example:Input: n ...

2019-02-18 20:18:00 115

原创 LeetCode 508. Most Frequent Subtree Sum

分析难度 中来源 https://leetcode.com/problems/most-frequent-subtree-sum/题目Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of...

2019-02-16 22:44:11 166

原创 LeetCode 647. Palindromic Substrings

分析难度 中来源 https://leetcode.com/problems/palindromic-substrings/题目Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or...

2019-02-16 11:09:27 188

ltp4j_v1.jar

ltp4j是语言技术平台(Language Technology Platform, LTP)接口的一个Java封装。

2017-05-10

空空如也

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

TA关注的人

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