Filter by the role you are applying for, open a question, and practise explaining the answer out loud. Mark it practised when you can.
Why they ask this: A quick check of loops, indexes and the difference between bytes and characters.
Write a function that returns the reverse of a string. Try it without using a built-in reverse helper first. Example
Why they ask this: Tests the two-pointer technique and careful handling of edge cases like spaces and punctuation.
A phrase is a palindrome if, after converting all letters to lowercase and removing every non-alphanumeric character, it reads the same forwards and…
Why they ask this: Checks counting with a hash map and comparing frequency, a pattern used in many string problems.
Given two lowercase strings a and b, return true if b is an anagram of a (it uses exactly the same letters the same number of times), otherwise false. Example 1…