Offline

2 articles

dsa8 min read

Maximum XOR With an Element From Array — Offline Binary Trie

LeetCode 1707 — for each query (xi, mi), find max xi XOR nums[j] where nums[j] does not exceed mi. Sort queries by mi, sort nums, insert lazily into a binary trie, answer each query in O(32). The offline-trie pattern unlocks bounded XOR queries.

Read →
ollama7 min read

Ollama — Run LLMs Locally on Mac, Linux and Windows 2026

Learn how to install Ollama and run large language models locally on your own hardware without internet access or API keys. This guide covers installation, model management, Python integration, LangChain setup, custom Modelfiles, and production considerations.

Read →