Skip to content

Instantly share code, notes, and snippets.

View tmartin8080's full-sized avatar
๐Ÿ 
๐Ÿก

Troy Martin tmartin8080

๐Ÿ 
๐Ÿก
View GitHub Profile
@PJUllrich
PJUllrich / big-o.md
Last active May 28, 2025 20:29
Big-O Time Complexities for Elixir Data Structures

Big-O Time Complexities for Elixir data structures

Map [1]

Operation Time Complexity
Access O(log n)
Search O(log n)
Insertion O(n) for <= 32 elements, O(log n) for > 32 elements [2]
Deletion O(n) for <= 32 elements, O(log n) for > 32 elements
@kipcole9
kipcole9 / Map.Helpers
Last active October 24, 2023 22:13
Helpers for Elixir Maps: underscore, atomise and stringify map keys
defmodule Map.Helpers do
@moduledoc """
Functions to transform maps
"""
@doc """
Convert map string camelCase keys to underscore_keys
"""
def underscore_keys(nil), do: nil