Loading...
Loading...
A growing set of coding problems solved locally with tests, then published as concise markdown explanations.
March 2, 2026
Given an array of strings, return the longest common prefix shared by all strings.
February 28, 2026
Given a string s, return the index of the first non-repeating character, or -1 if none exists.
February 27, 2026
Write a function that reverses a string represented as an array of characters in-place with O(1) extra space.
February 27, 2026
Given a string s, return true if it is a palindrome after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters.
February 26, 2026
Given an integer array nums, return true if any value appears at least twice, and false if all elements are distinct.
February 26, 2026
Given two strings s and t, return true if t is an anagram of s, and false otherwise.
February 25, 2026
Given an array of integers and a target, return the indices of two numbers that add up to the target.