Desarrollador Javascript Interview Questions

711,066 desarrollador javascript interview questions shared by candidates

You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).
avatar

Programmer

Interviewed at IG Group

2.9
Feb 27, 2010

You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).

Viewing 1421 - 1430 interview questions

Glassdoor has 711,066 interview questions and reports from Desarrollador javascript interviews. Prepare for your interview. Get hired. Love your job.