Repository for "Data structures & Algorithms" - learn code
Competitive Coding will be done in programming languages - Java
, Python
, Rust
, Typescript
.
- Always prefer key-value based data structures i.e.
map
overarray
based data structures, it has the fastest read, butarray
has the fastest write. This is because during insertion, themap
has to find if the key is already present or not, but inarray
, it just has to append the value at the end of thearray
.