mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LintCode] Problem 1127 - Add Bold Tag in String

Posted on 2019-10-04 | In Algorithm , LintCode
Given a string s and a list of strings dict, you need to add a closed pair of bold tag and to wrap the substrings in s that exist in dict. If two such ...
Read more »

[LintCode] Problem 812 - Bold Words in String

Posted on 2019-10-04 | In Algorithm , LintCode
Given a set of keywords words and a string S, make all appearances of all keywords in S bold. Any letters between <b> and </b> tags become ...
Read more »

[LeetCode] Problem 754 - Reach a Number

Posted on 2019-10-04 | In Algorithm , LeetCode
You are standing at position 0 on an infinite number line. There is a goal at position target. On each move, you can either go left or right. During t ...
Read more »

[LeetCode] Problem 762 - Prime Number of Set Bits in Binary Representation

Posted on 2019-10-04 | In Algorithm , LeetCode
Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation ...
Read more »

[LeetCode] Problem 747 - Largest Number At Least Twice of Others

Posted on 2019-10-04 | In Algorithm , LeetCode
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as ...
Read more »

[LeetCode] Problem 746 - Min Cost Climbing Stairs

Posted on 2019-10-04 | In Algorithm , LeetCode
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y ...
Read more »

[LeetCode] Problem 724 - Find Pivot Index

Posted on 2019-10-03 | In Algorithm , LeetCode
Given an array of integers nums, write a method that returns the “pivot” index of this array. We define the pivot index as the index where the sum of ...
Read more »

The English We Speak 5

Posted on 2019-10-03 | In English
A leopard can’t change its spotshe won’t change. He will always be the same person and his bad habits are here to stay. ExamplesI told Karen she had t ...
Read more »

[LeetCode] Problem 524 - Longest Word in Dictionary through Deleting

Posted on 2019-10-02 | In Algorithm , LeetCode
Given a string and a string dictionary, find the longest string in the dictionary that can be formed by deleting some characters of the given string. ...
Read more »

[LeetCode] Problem 720 - Longest Word in Dictionary

Posted on 2019-10-02 | In Algorithm , LeetCode
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
Read more »
1…8910…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces