Racla's Blog

Go for it.


  • Home

  • About

  • Tags

  • Categories

  • Archives

25 Reverse Nodes in k-Group

Posted on 2019-11-23 | In LeetCode
Intuition & AlgorithmThe very intuitive method to solve this problem is: splice the List into k nodes a group reverse the group list reconnect gr ...
Read more »

24 Swap Nodes in Pairs

Posted on 2019-11-23 | In LeetCode
Intuition & Algorithm Question 25 is a more general question of this one. Suppose there are three pairs $p_0$, $p_1$ and $p_2$. We need to swap n ...
Read more »

377 Combination Sum IV

Posted on 2019-11-20 | In LeetCode
Intuition & AlgorithmAt the first glampse of this question, I write down the dfs algorithm immediately. It works of course, but will encounter the ...
Read more »

216 Combination Sum III

Posted on 2019-11-20 | In LeetCode
Intuition & AlgorithmNumbers 1-9 can be seen as candidates in the previous questions, the constraints of this question are: We can only pick one ...
Read more »

40 Combination Sum II

Posted on 2019-11-20 | In LeetCode
Intuition & AlgorithmI think it’s better to compare this question with last question 39 Combination Sum. Their difference is: One number can appe ...
Read more »

39 Combination Sum

Posted on 2019-11-19 | In LeetCode
Intuition && AlgorithmIt’s dfs+dynamic programming problem. To get all the possible combination adding up to the target, we need to solve seve ...
Read more »

47 Permutations II

Posted on 2019-11-16 | In LeetCode
Intuition & AlgorithmRecall how we get permutations for numbers without duplication: for each permutation in last solution set, we insert the new ...
Read more »

46 Permutations

Posted on 2019-11-16 | In LeetCode
Intuition & AlgorithmIt’s a dynamic programming question. Suppose we have get the permutations of i number, the i+1th number will be added to the ...
Read more »

49 Group Anagrams

Posted on 2019-11-16 | In LeetCode
Intuition & AlgorithmThe primitive problem of this question is how to define anagrams. The definition from wikipedia is: An anagram is a word or ...
Read more »

148 Sort List

Posted on 2019-11-10 | In LeetCode
Intuition & AlgorithmThe diagram and illustration in the question have given us a clear description of insertion sort algorithm. Separate the lis ...
Read more »
1234
Wan

Wan

Professional Bathroom Singer

32 posts
7 categories
22 tags
GitHub E-Mail Linkedin
0%
© 2019 — 2020 Wan
PV: | Guests:
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4