Interviews by company · TikTok

TikTok's AI-assisted coding interview

In TikTok's AI-assisted coding interview you share your screen and use your own AI tool to build a small system from a short brief. One candidate for a software engineer role on TikTok's e-commerce side (shipping and logistics) had it as their first round in August 2026. Theirs was an order validator. The brief left most of the decisions to them, and they ran out of time before they had finished the tests. They were rejected the same day.

This page rests on that candidate's report, which gives the task in full, and on a recruiter's invite from July 2026. Another first-round report describes a different task, so yours may not be this one. Nyrion users send us their rounds too, and we update this page when they do.

What they ask

The brief is a paragraph. Write an order validator. Its rules check things such as whether an order contains prohibited items or whether its price is within a range. Rules can be added and removed. They also depend on each other, and the dependencies form a directed acyclic graph. That is the whole spec.

Once the basics work, the follow-up comes. When a rule is removed, its prerequisites become the prerequisites of the rules that depended on it.

What decides it

The brief names no function signatures and no error behaviour, and it does not say what an order is, what a rule returns, what happens on a cycle, or whether a prerequisite may name a rule that does not exist yet. Ask about the ones you cannot guess. For the rest, say what you chose before the assistant writes the code, and write a test for it.

The removal follow-up is one more question of that kind. Rewiring the graph takes a few lines once you have said what the rule is, including what happens to duplicates and to order.

The candidate built the validator and got to the follow-up. Their note for the next person was that it was their first AI-assisted coding interview. We do not know why they were turned down. The tests were the part left unfinished, so we would plan the round backwards from them.

How we would prepare

Before the first prompt, say in one line what an order looks like and in one line what a rule is. Then say what a dependency means. We would let a rule run only once its prerequisites pass. If one fails, its dependants are skipped and the result names them.

Pick an answer for cycles and for prerequisites that name unknown rules. You can refuse them when the rule is added or when the order is validated. Choose one and make the assistant's code match it.

Keep the last fifteen minutes for tests, and write one for every rule you decided, including the removal rewiring when the dependant already lists one of the names it inherits.

If you have a round like this at another company too, the AI coding interview guide says how theirs differs.

Frequently asked, briefly answered

Can I use my own AI tool in TikTok's coding interview?

Yes. The August candidate used their own AI tool with the screen shared. In July 2026 a recruiter told another candidate to bring their own IDE with AI assistance installed for a tech screen. The August report says nothing about a tool TikTok provides.

Which TikTok teams run the AI-assisted round?

We know of one, the e-commerce side in shipping and logistics. Whether other TikTok teams run the same format is not known.

How is TikTok's AI-assisted interview scored?

Nobody we read says. We also do not know which language is expected, or whether tests are required. We would write them anyway.

Practice problems tagged for TikTok

We built Order Validator from this report. In the first part you write the two rules from the brief and add and remove them, on an order shape and a rule interface we chose. The second adds prerequisites that form a graph, with forward references, cycles refused and dependants skipped. The third is the removal follow-up. The task and the follow-up come from the candidate. We wrote the exact rewiring rule ourselves, and the shape of the result too. Browse the catalog without logging in, and sign in when you want to solve one.

Had this round recently? Tell us how it went and we will add it here.