Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Comments #9668

Merged
merged 23 commits into from
Oct 4, 2023
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
44a47c4
docs : add comment in circular_linked_list.py and swap_nodes.py
SiddhantTotade Oct 3, 2023
b89baf8
docs : improve comments
SiddhantTotade Oct 3, 2023
8a04d2e
docs : improved docs and tested on pre-commit
SiddhantTotade Oct 3, 2023
753da5a
docs : add comment in circular_linked_list.py and swap_nodes.py
SiddhantTotade Oct 3, 2023
c19d8c6
docs : improve comments
SiddhantTotade Oct 3, 2023
3129fb3
docs : improved docs and tested on pre-commit
SiddhantTotade Oct 3, 2023
6711e46
docs : modified comments
SiddhantTotade Oct 4, 2023
eaa5bab
docs : improved comments
SiddhantTotade Oct 4, 2023
64aff93
Update circular_linked_list.py
SiddhantTotade Oct 4, 2023
f5ca881
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 4, 2023
926dc04
docs : improved
SiddhantTotade Oct 4, 2023
081f19f
docs : improved
SiddhantTotade Oct 4, 2023
2288708
Update data_structures/linked_list/circular_linked_list.py
SiddhantTotade Oct 4, 2023
fa3b858
Update data_structures/linked_list/circular_linked_list.py
SiddhantTotade Oct 4, 2023
a918ca5
Update data_structures/linked_list/swap_nodes.py
SiddhantTotade Oct 4, 2023
6366b17
Update data_structures/linked_list/swap_nodes.py
SiddhantTotade Oct 4, 2023
01352c8
Update data_structures/linked_list/swap_nodes.py
SiddhantTotade Oct 4, 2023
dea9a9f
Update data_structures/linked_list/swap_nodes.py
SiddhantTotade Oct 4, 2023
74a5ddc
Update requirements.txt
SiddhantTotade Oct 4, 2023
61a9e05
Update data_structures/linked_list/circular_linked_list.py
SiddhantTotade Oct 4, 2023
bf26599
Apply suggestions from code review
cclauss Oct 4, 2023
9ca01a7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 4, 2023
25dd039
Update circular_linked_list.py
cclauss Oct 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update data_structures/linked_list/swap_nodes.py
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
SiddhantTotade and cclauss authored Oct 4, 2023
commit 6366b17523b1a28be56b5c465b28e72ef345bc21
2 changes: 1 addition & 1 deletion data_structures/linked_list/swap_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def push(self, new_data: Any) -> None:
new_node.next = self.head
self.head = new_node

def swap_nodes(self, node_data_1, node_data_2):
def swap_nodes(self, node_data_1, node_data_2) -> None:
"""
Swap the positions of two nodes in the Linked List based on their data values.
Args:
Expand Down