Doubly Linked Lists
Learn how doubly linked lists work, why prev pointers help, and why bidirectional references make mutation more delicate.
16 items tagged with data-structures.
Learn how doubly linked lists work, why prev pointers help, and why bidirectional references make mutation more delicate.
Learn how singly linked lists work, including head pointers, next references, traversal, insertion, append, and deletion.
Compare arrays and linked lists across random access, insertion, deletion, traversal, memory overhead, and cache locality.
Learn the mental model behind linked lists: nodes, values, next references, head pointers, null, and how a list exists as a chain.
Learn why linked lists exist, how they differ from arrays, and when reference-based sequences are useful in programming.
Learn linked lists from first principles: nodes, references, arrays vs linked lists, singly linked lists, doubly linked lists, and practical tradeoffs.
Learn how graphs can model search spaces in games, compilers, planners, and workflows using generated neighbors, minimax, and pruning.
Learn weighted graphs, shortest paths, edge costs, and Dijkstra's algorithm for programming problems where relationships have cost.
Learn topological sort with dependency graphs, build order examples, in-degree, Kahn's algorithm, and cycle detection.
Learn how to detect cycles in directed graphs using DFS, in-progress nodes, and done states, with dependency graph examples.
Learn how to represent graphs in code using edge lists, adjacency lists, adjacency matrices, and reversed graphs for practical programming problems.
Learn graph traversal with BFS and DFS, when to use each search strategy, and why traversal order matters in programming.
Compare graphs with arrays, maps, tables, and trees, and learn when graph data structures are the right model for relationship-heavy problems.
Learn the graph theory basics programmers need: vertices, edges, directed graphs, degree, paths, cycles, and weighted edges.
Learn why graphs are useful in programming, when arrays and maps are not enough, and how graphs model relationships in real data.
Learn graphs for programming from first principles: graph models, nodes, edges, graph theory basics, traversal, dependency ordering, shortest paths, and search spaces.