mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LintCode] Problem 659 - Encode and Decode Strings

Posted on 2019-06-05 | In Algorithm , LintCode
Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list ...
Read more »

[LeetCode] Problem 648 - Replace Words

Posted on 2019-06-05 | In Algorithm , LeetCode
In English, we have a concept called root, which can be followed by some other words to form another longer word - let’s call this word successor. For ...
Read more »

[LeetCode] Problem 299 - Bulls and Cows

Posted on 2019-06-04 | In Algorithm , LeetCode
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. Each time ...
Read more »

[LeetCode] Problem 833 - Find And Replace in String

Posted on 2019-06-04 | In Algorithm , LeetCode
To some string S, we will perform some replacement operations that replace groups of letters with new ones (not necessarily the same size). Each repla ...
Read more »

[LeetCode] Problem 692 - Top K Frequent Words

Posted on 2019-06-04 | In Algorithm , LeetCode
Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words h ...
Read more »

[LeetCode] Problem 916 - Word Subsets

Posted on 2019-06-04 | In Algorithm , LeetCode
We are given two arrays A and B of words. Each word is a string of lowercase letters. Now, say that word b is a subset of word a if every letter in b ...
Read more »

[LintCode] Problem 829 - Word Pattern II

Posted on 2019-06-04 | In Algorithm , LeetCode
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
Read more »

[LeetCode] Problem 290 - Word Pattern

Posted on 2019-06-03 | In Algorithm , LeetCode
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
Read more »

[LeetCode] Problem 140 - Word Break II

Posted on 2019-06-03 | In Algorithm , LeetCode
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is ...
Read more »

[LeetCode] Problem 139 - Word Break

Posted on 2019-06-02 | In Algorithm , LeetCode
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-separated sequ ...
Read more »
1…363738…78
mrlonelyjtr

mrlonelyjtr

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

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