โ† OYO questions
CodingHard

Ways to return to start vertex in a triangle

Filed under OYO

You are at vertex A of a triangle (vertices A, B, C). In each step, you move to an adjacent vertex. Find the number of ways to return to vertex A after exactly n steps.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.