TLThi Leincup-of-coding.hashnode.dev·Jul 30, 2021 · 2 min readHow I will Leetcode and review next weekI have been doing Leetcode on-and-off lately. "On" for most days. "Off" when I have an exam or, lately, feel not in good health. I know this is not a recommended schedule, so I want to incorporate a system to learn and review. Set up: Focus on 75 B...00
TLThi Leincup-of-coding.hashnode.dev·Jul 4, 2021 · 3 min readOperations on Arrays and their time complexityAbove, I attached a table of common data structure operations from Big-O cheat sheet . And we will focus on Array for now. As you can see, there are four operations to take notice of. Those are access, search, insertion, and deletion. With each of ...00
TLThi Leincup-of-coding.hashnode.dev·Jun 29, 2021 · 2 min readExplaining O(n) and O(1)O(n) vs O(1) When we say an algorithm is O(n), we imply that it takes n steps to take this algorithm from start to finish, given n is the number of input, or in the array case, the length of an array. For example, let's look at the following code sn...01M
TLThi Leincup-of-coding.hashnode.dev·Jun 24, 2021 · 4 min readLibrary books, or are we talking "Arrays"?Imagine you are in a library, facing rows of bookshelves. Each bookshelf is stacked with rows and rows of books covering many topics–History, Astronomy, Biography, and Literature–like this one I got from Google: Because the libraries have to handle ...00