Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional functionality #6

Open
tshemsedinov opened this issue Mar 2, 2017 · 0 comments
Open

Additional functionality #6

tshemsedinov opened this issue Mar 2, 2017 · 0 comments

Comments

@tshemsedinov
Copy link
Member

Добавить в LinkedList еще методы, например:

  • Поиск (с разной реализацией):
    • Найти первый и вернуть через return: findFirst(name):Node
    • Найти все и вернуть через return массив: findAll(name):[Node]
    • Искать и вызывать callback при нахождении: find(name, callback(Node))
    • По регулярному выражению: find(nameRegExp, callback(Node))
  • Добавление элементов: shift, pop, erase
  • Удаление элементов: unshift, push, insert
  • Вставка массива элементов: append([node1, node2, node3])

и таких можно придумать много, вы поняли принцип

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

No branches or pull requests

1 participant