Skip to content

Conversation

@ArtyomLobanov
Copy link
Owner

No description provided.

Copy link

@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()) {

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;

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.

3 participants