Skip to content

My tree#3

Open
Aykeron wants to merge 5 commits into
masterfrom
MyTree
Open

My tree#3
Aykeron wants to merge 5 commits into
masterfrom
MyTree

Conversation

@Aykeron

@Aykeron Aykeron commented Oct 4, 2016

Copy link
Copy Markdown
Owner

No description provided.

@sproshev sproshev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

зачтено 8.5

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

код не отформатирован, с модификаторами проблемы, сущности не упорядочены

-1

}
root.deserialize(in);
return;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

опять несодержательные return выражения

-0.5

}
public int getCntNode() {
return root.getCntNode();
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

код, используемый только в тестах, должен быть удален
тесты работают только с предоставляемым интерфейсом


public class MyTree implements Trie, StreamSerializable{
private class TreeNode {
final static String letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

именование констант

кстати, в других местах тоже именование хромает, но совсем чуть-чуть: getNumLet, passLet, вот это всё

for (int i = 0; i < 52; i++) {
nextNode[i] = null;
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

52 -- magic number, для этого надо завести константу

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants