Skip to content

Commit

Permalink
Removed unecessary this in Facebook algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasmusson committed Sep 10, 2020
1 parent 1b7c4e8 commit 0919524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion algorithms.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ public Node(int key) {
public Node copy() {
Node newNode = new Node(key);

if (this.left != null) {
newNode.left = this.left.copy();
if (left != null) {
newNode.left = left.copy();
}

if (this.right != null) {
newNode.right = this.right.copy();
if (right != null) {
newNode.right = right.copy();
}

return newNode;
Expand Down

0 comments on commit 0919524

Please sign in to comment.