Search posts, tags, users, and pages
Amit singh
class Solution { public void sortColors(int[] nums) { int low = 0, mid = 0, high = nums.length - 1; while (mid <= high) { if (nums[mid] == 0) { // Swap with low and move both pointers forward ...
No responses yet.