Commit 06e99f0

mo khan <mo.khan@gmail.com>
2020-07-05 20:51:50
Add a description
1 parent b965e83
Changed files (1)
src
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