โ† Sigmoid questions

Rearrange array by replacing K with ones and shifting

Filed under Sigmoid

The question

Remove every occurrence of K from an array, shift remaining elements left, and insert as many 1s as K occurred.

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

Related Sigmoid questions

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