← All questions
MediumCodingCoding10 min to answer

Given click counts by domain, aggregate counts for every parent subdomain.

Asked atPalantir
1Give yourself 10 minutes
2Answer out loud, not in your head
3Then compare with the answer below
Stuck? Show a way to structure it+
  1. 01Clarify the objective, user, constraints, and acceptable failure modes.
  2. 02Structure the response around parsing, hash map, complexity, edge cases.
  3. 03Compare credible alternatives and state the decision criteria.
  4. 04Finish with validation, monitoring, and what would change the decision.

Reference answer

Then expect these follow-ups

  • What are the time and space complexities?

    Tests: depth

  • Which edge cases would you test?

    Tests: adaptability

  • How would this work across multiple processes?

    Tests: adaptability

Hiring now

Palantir has 229 open roles right now

landed applies to roles like these for you, on each company’s own site, with answers written for the role.

Get 5x interviews10 free auto-applies. No card.
  • Information Security Engineer - Infrastructure Security

    London, United Kingdom

  • Software Engineer, Intern - Connectivity Platform and Product

    Denver, CO

  • Software Engineer, Internship - Sovereign AI Systems

    London, United Kingdom

Or practice this question first

Next question