Backlog of coding-interview tasks. Status legend:
- ✅ — implemented
- 🟡 — partially implemented
- ⬜ — backlog, not implemented yet
Design REST service related with Pet Clinic, where pets have name and age.
Add operation with pets batch update (for example, add new field: owner).
GET /api/v1/{id}DELETE /api/v1/{id}POST /api/v1
{ name: ..., age : ... }PUT /api/v1/{id}
{ age: ... }PATCH /api/v1
{ ids: [...], owner: ... }
Backlog: this repository contains no REST/Spring application code.
- быстрая
- блочная — ✅
BucketSort
- пробирование
- линейное — ⬜
- квадратичное — ⬜
- псевдослучайное — ⬜
- хеширование
- одинарное — ⬜
- двойное — ⬜
Only chaining is implemented: CustomHashMap
(video). Probing strategies and single/double hashing remain as backlog.
- с повторениями — ⬜
- без повторений — ⬜
Only permutations are implemented: Permutations
(video). Combinations/arrangements remain as backlog.
- добавление вершин — ⬜
- поиск вершин — ✅
BinarySearchTree.Node.contains(video) - удаление вершин — ⬜
- префиксные деревья — ✅
WordSearch_IIUsingPrefixTree.Trie(video)
We have search engine, it provides web-interface with text field where a query could be typed. We want to add the next feature: when a user starts typing - he will get a suggestion with 10 most popular queries started from typed characters. File with the most popular searches generated 1 time per day, it contains 1 mln lines, sorted by popularity. Propose the design of such system.
Backlog: no implementation in the repository.
Propose algorithm for sorting a bunch of long strings situated on disk. We have restriction of RAM size: so only one string could be loaded into RAM simultaneously.
Backlog: no implementation in the repository.
Реализовать ReadWriteLock на базе обычного Lock
Backlog: only
CustomLockandCustomReentrantLockexist.CustomConcurrentStackrelies on the JDKReentrantReadWriteLock, so a custom implementation is still missing.