Skip to content

Latest commit

 

History

History
86 lines (61 loc) · 3.43 KB

tasks.md

File metadata and controls

86 lines (61 loc) · 3.43 KB

Tasks

Backlog of coding-interview tasks. Status legend:

  • ✅ — implemented
  • 🟡 — partially implemented
  • ⬜ — backlog, not implemented yet

Pet Clinic REST API — ⬜

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.

Сортировки

  • быстрая
    • со стеками — ⬜
    • на месте — ✅ QuickSort (video)
  • блочная — ✅ 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.

Деревья

Search engine with suggestion ability — ⬜

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.

Sorting big strings task — ⬜

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.

Multithreading — ⬜

Реализовать ReadWriteLock на базе обычного Lock

Backlog: only CustomLock and CustomReentrantLock exist. CustomConcurrentStack relies on the JDK ReentrantReadWriteLock, so a custom implementation is still missing.