Skip to main content

13 docs tagged with "Python"

View all tags

Examples

Comparisons of DS&A tasks across different languages"

Fixed Sliding Window: Rethinking the Pattern

A clean, reusable approach to sliding window problems — starting at the first valid state, removing conditional complexity, and focusing on window validity instead of index juggling.

How to Build Tree Structures

Explore multiple techniques for converting flat or semi-structured data into trees in Python, including recursive, map-based, and bottom-up builds like Merkle trees.

Leetcode Toolbox: Surviving the Game

This section isn’t about data structures and algorithms — it’s about surviving the system. Tips and patterns to help you finish implementation before time runs out, even when your engineering instincts are working against you.

Matrix Toolbox

Handy Python snippets and patterns for working with 2D grids and matrices: initialization, bounds checking, neighbor offsets, and n-distance neighbors.