โ† CarWale questions

First non-repeating character and expanding random range

Filed under CarWale

The question

Find the first non-repeating element in a string with optimized space complexity, and implement a random number generator for a larger range (e.g., rand7 using rand5, or rand4 using rand2).

No write-up yet. Related questions below have one.

Related CarWale questions

Collected from public candidate posts and coding forums. Updated Nov 2026.