Skip to content

Java02. ДЗ 02, Лобанов Артём#5

Open
ArtyomLobanov wants to merge 4 commits into
masterfrom
task3
Open

Java02. ДЗ 02, Лобанов Артём#5
ArtyomLobanov wants to merge 4 commits into
masterfrom
task3

Conversation

@ArtyomLobanov
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@sproshev sproshev left a comment

Choose a reason for hiding this comment

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

10

private Stack<Node> getStack(@NotNull String element) {
Stack<Node> stack = new Stack<>();
stack.push(root);
for (char c : element.toCharArray()) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

учитывай, что toCharArray создает копию строки

Node<E> last;

StackIterator(@NotNull Node<E> head) {
this.last = head;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

можно обойтись без this

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