Algorithm challenge lab

Make the connection.

Pick a topic, use your own timer, then validate the TypeScript solution before reviewing the approach.

Challenges3 topics

Dynamic arrays

Insert at index

Write a clear solution for this algorithm pattern. Use the typed function signature as your contract and explain the complexity in comments.

Manual reviewCheck the example, edge cases, and complexity.TypeScript is checked safely without execution.

Validation reports TypeScript syntax and type diagnostics. Algorithm correctness stays a manual review.

solution.ts
TypeScript
7 linesStrict TypeScript check

Your pace

Practice with a timer.

Set your own limit, start when ready, and pause to think.

Ready when you are30:00

When you are done

Validate, then review.

We check TypeScript without running it. Once it compiles cleanly, inspect the algorithm manually.