Can you beat Python's brevity while keeping it efficient? Go!

8 061
19.2
Published on 16 Mar 2026, 13:01
A minimalist string algorithm developer challenge: write a function in any language that returns the first non-repeating character in a string, or null if every character repeats. Our example Python version solves it in 87 characters. Your turn: Can you make it shorter? Which language gives you the cleanest frequency counting? Can you make it O(n)? Share your solution in the comments!

Subscribe to Google for Developers → goo.gle/developers

Speaker: Christine Rafla
autotechmusickids