YHYoussef Heshaminyoussefhesham.hashnode.dev·May 7, 2024 · 5 min readCracking the Coding Interview [Ch.2: Linked Lists]Introduction In the previous chapter, we discussed arrays and ArrayLists, which insert elements at the end and access them in constant time, O(1). However, what if we encounter scenarios where we need to frequently add or remove elements at the begin...00
YHYoussef Heshaminyoussefhesham.hashnode.dev·Mar 26, 2024 · 8 min readCracking the Coding Interview [Ch.1: Arrays and Strings]Introduction Hash tables are essential data structures known for efficient key-value mapping and quick lookup operations. This chapter delves into a common implementation of hash tables using arrays of linked lists and hash code functions. We will ex...00