Skip to content

Commit c873fa0

Browse files
authored
Correct grammar of comment in backtracking/hamiltonian_cycle.py (TheAlgorithms#4868)
1 parent 31b34af commit c873fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backtracking/hamiltonian_cycle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def valid_connection(
1515
Checks whether it is possible to add next into path by validating 2 statements
1616
1. There should be path between current and next vertex
1717
2. Next vertex should not be in path
18-
If both validations succeeds we return True saying that it is possible to connect
19-
this vertices either we return False
18+
If both validations succeed we return True, saying that it is possible to connect
19+
this vertices, otherwise we return False
2020
2121
Case 1:Use exact graph as in main function, with initialized values
2222
>>> graph = [[0, 1, 0, 1, 0],

0 commit comments

Comments
 (0)