JobsJob TrackerJob alerts

Consultadd ยท 16 questions

All 16Coding 10System Design 1
  • SQL Aggregate Queries
  • ER Diagram DesignSystem Design
  • String ProblemCoding
  • Advanced SQL Queries
  • Sliding Window String ProblemCoding
  • Recursion ProblemCoding
  • Maximum Size Square Sub-matrix with 1sCoding
  • Sort Array of 0s, 1s, and 2s (Dutch National Flag)Coding
  • Remove Duplicate Entries in SQL TableCoding
  • Largest subarray with equal 0s and 1sCoding
  • Group AnagramsCoding
  • OS Requirements
  • Time complexity of Array vs LinkedListCoding
  • OOP Concepts
  • Linear vs Binary SearchCoding
  • Database Keys and Relationships
โ† Consultadd questions
  1. Interview questions
  2. Consultadd
  3. Sort Array of 0s, 1s, and 2s (Dutch National Flag)
Coding

Sort Array of 0s, 1s, and 2s (Dutch National Flag)

Filed under Consultadd

The question

Sort an array of size n containing only values 1, 2, and 3 in a single pass.

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

Related Consultadd questions

  • Sliding Window String Problem
  • Maximum Size Square Sub-matrix with 1s
  • Remove Duplicate Entries in SQL Table
  • Time complexity of Array vs LinkedList
โ† Maximum Size Square Sub-matrix with 1sRemove Duplicate Entries in SQL Table โ†’

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