TryBugHunt
All collections
🤖Interview Prep ~25 mins

AI Code Comprehension

Spot the hidden flaw in plausible AI interview solutions

Simulate modern Code Comprehension rounds: classic coding questions written by an AI that pass the obvious test, but break on subtle edge cases.

Mixed (Python & JS)Medium5 Challenges

Your Progress

0 of 5 completed

Start Collection

Challenges in this collection

  1. 1

    AI Attempt: FizzBuzz never says FizzBuzz

    An AI assistant wrote this FizzBuzz. fizzbuzz(n) returns "Fizz" for multiples of 3, "Buzz" for multiples of 5, "FizzBuzz" for multiples of both, and otherwise the number as text. Example: fizzbuzz(15) → "FizzBuzz".

    easy
  2. 2

    AI Attempt: The palindrome checker

    An AI assistant wrote this to check if a word reads the same backwards, ignoring capitals. Example: is_palindrome("Racecar") → True, is_palindrome("hello") → False.

    easy
  3. 3

    AI Attempt: The Two Sum Trap

    An AI assistant wrote this for a classic interview question. has_pair_sum(numbers, target) returns True if two different numbers in the list add up to target. Example: has_pair_sum([1, 2, 3], 5) → True, has_pair_sum([5], 10) → False.

    medium
  4. 4

    AI Attempt: Remove all occurrences

    An AI assistant wrote this for a classic interview question. removeAll(arr, item) removes every copy of item from the array. Example: removeAll([1, 2, 2, 3], 2) → [1, 3].

    medium
  5. 5

    AI Attempt: The anagram checker

    An AI assistant wrote this for a classic interview question. is_anagram(a, b) returns True when both words use the same letters, the same number of times. Example: is_anagram("listen", "silent") → True, is_anagram("aab", "abb") → False.

    medium

More collections to explore