diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-05 14:51:50 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-07-05 14:51:50 -0600 |
| commit | 06e99f0b87e8b4c0eb1d5580786fccd175c4ecd2 (patch) | |
| tree | e14a628f3525a33d3abebeb9cef769eb3d8182e5 | |
| parent | b965e832b785f60d944d91a029a94e2bea9f0b9f (diff) | |
Add a description
| -rw-r--r-- | src/01/02b/README.md | 4 |
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 |
