uk spelling: visualisation
This commit is contained in:
@@ -84,7 +84,7 @@ visualization: |
|
|||||||
Eventually find: [1, 3, 0, 2] (queens at cols 1,3,0,2 for rows 0,1,2,3)
|
Eventually find: [1, 3, 0, 2] (queens at cols 1,3,0,2 for rows 0,1,2,3)
|
||||||
```
|
```
|
||||||
|
|
||||||
**Template visualization:**
|
**Template visualisation:**
|
||||||
|
|
||||||
```
|
```
|
||||||
backtrack(state):
|
backtrack(state):
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ visualization: |
|
|||||||
Order visited: A → B → D → F → E → C
|
Order visited: A → B → D → F → E → C
|
||||||
```
|
```
|
||||||
|
|
||||||
**Recursion call stack visualization:**
|
**Recursion call stack visualisation:**
|
||||||
|
|
||||||
```
|
```
|
||||||
dfs(A)
|
dfs(A)
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ explanation:
|
|||||||
key_takeaways:
|
key_takeaways:
|
||||||
- "**Null markers are essential**: They encode the tree's *structure*, not just its values — this is what distinguishes serialization from simple traversal"
|
- "**Null markers are essential**: They encode the tree's *structure*, not just its values — this is what distinguishes serialization from simple traversal"
|
||||||
- "**Preorder + nulls = unique tree**: Preorder traversal with null markers uniquely identifies any binary tree, enabling perfect reconstruction"
|
- "**Preorder + nulls = unique tree**: Preorder traversal with null markers uniquely identifies any binary tree, enabling perfect reconstruction"
|
||||||
- "**BFS matches intuition**: Level-order serialization is often easier to visualize and debug since it matches how we draw trees"
|
- "**BFS matches intuition**: Level-order serialization is often easier to visualise and debug since it matches how we draw trees"
|
||||||
- "**This pattern appears everywhere**: Serialization concepts apply to JSON parsing, protocol buffers, database storage, and network transmission of complex data structures"
|
- "**This pattern appears everywhere**: Serialization concepts apply to JSON parsing, protocol buffers, database storage, and network transmission of complex data structures"
|
||||||
|
|
||||||
time_complexity: "O(n). Both serialization and deserialization visit each node exactly once, where `n` is the number of nodes in the tree."
|
time_complexity: "O(n). Both serialization and deserialization visit each node exactly once, where `n` is the number of nodes in the tree."
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export function VisualizationContainer({
|
|||||||
<div
|
<div
|
||||||
className="flex min-h-80 min-w-0 items-center justify-center overflow-x-auto rounded-lg border border-border bg-surface px-8 py-4 lg:h-auto"
|
className="flex min-h-80 min-w-0 items-center justify-center overflow-x-auto rounded-lg border border-border bg-surface px-8 py-4 lg:h-auto"
|
||||||
role="img"
|
role="img"
|
||||||
aria-label="Algorithm visualization"
|
aria-label="Algorithm visualisation"
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user