Coding round
Coding problems
Write the function in Python, then run the tests to see which pass. Your code runs in your browser. Then practise the other half of the job: AI assistants write code that looks right, and someone has to find the input where it goes wrong.
Sign up free to take the placement tests and see your readiness
It takes a minute with your email. AiTeky Pass (₹999/month or ₹9,999/year) is free for your first 30 days.
Write the code
Problems like the ones in campus coding rounds, from easy to hard.
- Add the digits until one is left Number problems · Easy
- Are two words anagrams? Counting with dictionaries and sets · Easy
- Highest common factor, with recursion Recursion · Easy
- Palindrome, counting only letters and digits Strings · Easy
- Reverse the order of words Strings · Easy
- The missing number Arrays and lists · Easy
- Compress repeated letters Strings · Medium
- Find a number in a sorted list Searching and sorting · Medium
- First character that appears once Counting with dictionaries and sets · Medium
- Merge two sorted lists Searching and sorting · Medium
- Move the zeros to the end Arrays and lists · Medium
- Two numbers that add up to a target Counting with dictionaries and sets · Medium
- Ways to climb the stairs Recursion · Medium
- Largest sum of neighbouring numbers Arrays and lists · Hard
Spot the bug in AI code
Each function was written by an AI assistant and passes the example in its comment. Find the input it gets wrong, then fix it.
- Average that crashes Arrays and lists · Easy
- Counting that crashes on the first item Counting with dictionaries and sets · Easy
- Palindrome check that minds capitals Strings · Easy
- Prime check that lets 1 in Number problems · Easy
- Sum that stops one short Number problems · Easy
- Word count that counts spaces Strings · Easy
- Basket that remembers old items Arrays and lists · Medium
- Binary search that misses the ends Searching and sorting · Medium
- Second largest that repeats the largest Arrays and lists · Medium

