โ Back to Arrays
Question 400
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array
The array {1, 1, 2, 3, 3, 4} is already sorted. Print each distinct value once, keeping the order, on one line separated by spaces:
1 2 3 4Expected Output:
1 2 3 4
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.