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

Estimated read time 1 min read

Post Contenthttps://www.youtube.com/shorts/xMzPyRf5snY

​ 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 → https://goo.gle/developers

Speaker: Christine Rafla   Read More Google for Developers 

You May Also Like

More From Author