feat(hireup): add Service Call Profiler as OA question A - #128
Merged
Merged
Conversation
A real OA needs more than two problems, and the set jumped straight to a prefix-imbalance argument. Service Call Profiler is a stack simulation that gives candidates a reachable opening problem. The OA is now A (EASY, stack) < B (MEDIUM, prefix sums) < C (HARD, tree rerooting). Stress tests cover 50k nested re-entries, which breaks recursive walks and any per-entry stack rescan, plus flat call logs across 2 and 100 services. Output stays a few hundred bytes, well inside the judge limit.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Vercel didn’t deploy this pull request to the codenamed22's projects team. GitHub couldn’t verify an account for commit ff27a3a. Vercel blocks this deployment before it can verify the account’s access to the team. Review the commit before changing settings. If you don’t recognize it, don’t deploy it. Ask a repository administrator to investigate. If you do recognize it, verify the commit email in GitHub, connect that GitHub account to Vercel, then create a new commit and deploy again. Check your GitHub commit email · Troubleshoot Vercel access Commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A real OA needs more than two problems, and the previous set opened straight onto a prefix-imbalance argument. This adds Service Call Profiler as an approachable question A.
The OA is now a clean escalation:
Problem A
Given a single-threaded profiler log of
<id>:start:<t>/<id>:end:<t>entries, report each service's exclusive running time, excluding time spent paused on nested calls. End timestamps are inclusive, and a service may re-enter itself.Test coverage
Output is a few hundred bytes, well inside the judge's 2 MB limit.
Validation
tsc --noEmit, and 113 unit tests all pass