Adonais's notebook


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

[React] Hooks

Posted on 2019-03-13 | In Frontend , React , Hooks |
IntroductionAvailable after react 16.8 React Hooks are used in functional components to manage state. useState returns an array with exactly two elem ...
Read more »

[Javascript] Closure, Bind, Apply

Posted on 2019-03-06 | In Language , Javascript , Bind |
ClosureAn inner function has always access to the variables and parameters of its outer function, even after the outer function has returned. 12345678 ...
Read more »

[Leetcode] Union Find

Posted on 2019-03-02 | In Leetcode , Union Find |
IntroductionVideo: https://www.youtube.com/watch?v=0jNmHPfA_yE&t=59sChinese Video: https://www.youtube.com/watch?v=VJnUwsE4fWA Find(x) Find the ro ...
Read more »

[Leetcode] Bit Manipulation

Posted on 2019-02-23 | In Leetcode , Bit Manipulation |
IntroductionVideo: https://www.youtube.com/watch?v=NLKQEOgBAnw&t=189s Two’s Complement Notes: https://www.cs.cornell.edu/~tomf/notes/cps104/twosco ...
Read more »

[Leetcode] Stack

Posted on 2019-02-19 | In Leetcode , Stack |
1047. Remove All Adjacent Duplicates In StringLeetcode: https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/ 12345678def removeDupl ...
Read more »

[Leetcode] Matrix

Posted on 2019-02-19 | In Leetcode , Matrix |
48. Rotate ImageMatrix Rotation ProblemsSolution Template 123456789101112131415/* * clockwise rotate * first reverse up to down, then swap the symmetr ...
Read more »

[Leetcode] Two Pointers in Array

Posted on 2019-02-18 | In Leetcode , Two Pointers , Array |
Two Pointers in One Array15. 3SumLeetcode: https://leetcode.com/problems/3sum/ Note: Sort array (to conveniently jump over duplicates) Use i as the m ...
Read more »

[Leetcode] Binary Indexed Tree

Posted on 2019-02-18 | In Leetcode , Tree , Binary Indexed Tree |
Used to solve prefix sum problems. Why use BIT: can calculate prefix sums and update the sum with O(logn) efficiency. Construct a BIT from a int array ...
Read more »

[Docker] Volume and Network

Posted on 2019-02-18 | In Docker |
Docker VolumeData PersistenceContainers were meant and designed for stateless workloads and the design of the container layers shows that. A Docker im ...
Read more »

[Unix]Basic and Commands

Posted on 2019-02-14 | In Unix |
Unix Operating SystemThe KernelThe kernel of UNIX is the hub of the operating system: it allocates time and memory to programs handles the filestore ...
Read more »
1…8910…14

Adonais0

140 posts
131 categories
112 tags
GitHub Twitter
© 2024 Adonais0
Powered by Hexo
|
Theme — NexT.Mist v7.8.0