206

Alfredo Aguado
1 min readJun 25, 2021
  1. objects are thread-safe so you will not have any synchronization issues. Immutable objects are good Map keys and Set elements, since these typically do not change once created.
  2. It is less performant than mutable approach with small datasets. There is a constant performance penalty when using immutable data structures.
  3. immutable data cannot change its structure or the data in it. It’s setting a value on a variable that cannot change, making that value a fact, or sort of like a source of truth
  4. “The divide and rule” in politics and sociology is gaining and maintaining power by breaking up larger concentrations of power into pieces that individually have less power than the one implementing the stradegy.

Interstation or selection sort are both typically faster for small arrays.

quick sort -It works by selecting a ‘pivot’ element from the array and partitioning the other elements into two sub-arrays, according to whether they are less than or greater than the pivot.

--

--