Skip to content

Commit efbd0c2

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 26672b3 commit efbd0c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hackerrank/interview_preparation_kit/trees/tree_height_of_a_binary_tree_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def test_height(self):
3838

3939
tree: BinarySearchTree = BinarySearchTree()
4040

41-
for x in _tt['nodes']:
42-
tree.create(x)
41+
for nodes in _tt['nodes']:
42+
tree.create(nodes)
4343

4444
self.assertEqual(
4545
height(tree.root), _tt['answer'],
@@ -52,8 +52,8 @@ def test_height_border_case(self):
5252

5353
tree: BinarySearchTree = BinarySearchTree()
5454

55-
for x in _tt['nodes']:
56-
tree.create(x)
55+
for nodes in _tt['nodes']:
56+
tree.create(nodes)
5757

5858
self.assertEqual(
5959
height(tree.root), _tt['answer'],

0 commit comments

Comments
 (0)