LeetCode 做题笔记 Medium189. Rotate Arraylink Solution#1: using extra space to store some elements which will be covered when rotating. 𝒪(n) Space and time complexity. Solution #2: reverse three times on original arra 2022-04-22 leetcode
Segment Tree Intro Use case: Given an array , we want to: find the sum of elements in update the values of an elment in the array the Segment Tree can process both queries in time. The space complexity is in the 2022-04-22 DataStructure
The Room Library notes The library provides an abstraction layer over Database. I think some features are similar to Flask-SQLAlchemy. EntityEntity is used to represent the objects stored in Database. Each entity correspond 2021-12-12 Unfinished
Neural Networks Learning Notes All Screenshots below are from StatQuest. Part1: Inside the Black BoxBackgrounds of Example A neural_networks consist of nodes and connections between the nodes. The network starts out with unk 2021-12-10 Data Mining
Rust Snippets String slice && reference Array : is a collection of objects of same type T Slice : similar to array, but their length is unknown at compile time Scoping rules RAII Ownership and moves reso 2021-10-14 Language Unfinished