summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/01/02b/README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/01/02b/README.md b/src/01/02b/README.md
index b97e061..ab9b6ce 100644
--- a/src/01/02b/README.md
+++ b/src/01/02b/README.md
@@ -9,6 +9,10 @@ Swap two adjacent elements in a list by adjusting only the links (and not the da
## Description of the Code
+The `swap()` function operates in constant time by adjusing the next and previous
+pointers for the target nodes to swap. It also updates any pointers for neighbor
+nodes that need to be updated as well.
+
## Errors and Warnings
```bash