Skip to content

Sort 0 1 2#551

Open
Sonu589 wants to merge 1 commit intoseeditsolution:masterfrom
Sonu589:patch-1
Open

Sort 0 1 2#551
Sonu589 wants to merge 1 commit intoseeditsolution:masterfrom
Sonu589:patch-1

Conversation

@Sonu589
Copy link

@Sonu589 Sonu589 commented Oct 3, 2021

You are given an integer array/list(ARR) of size N. It contains only 0s, 1s and 2s. Write a solution to sort this array/list in a 'single scan'.
'Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.

You are given an integer array/list(ARR) of size N. It contains only 0s, 1s and 2s. Write a solution to sort this array/list in a 'single scan'.
'Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant