Frontend-flavoured DSA
Apply DSA to DOM trees, JSON and UI problems (very common in frontend loops, candidate reports).
- DSA.13.01DOM trees as data structuresCoreMid-levelBeing written
- DSA.13.02JSON traversal and transformationCoreMid-levelBeing written
- DSA.13.03UI algorithm problemsSeniorBeing written
Interview questions in this module
- Given two identical DOM trees and a node in the first, find the matching node in the second.
- Convert a flat list of items with
parentIdinto a tree. - Compute the difference between two JSON objects.
- How would you lay out overlapping events in a day calendar view?
- How does a keyed list diff decide the minimum moves?