Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #37.0K
1 Posted Topic
Re: [CODE]int unique(int *array, int number) //sorted array { int k = 0; for (int i = 1; i < n; i++) { if (a[k] != a[i]) { //comparing the first 2 unequal numbers a[k+1] = a[i]; //shifting to the left if distinct k++; } } return (k+1); //return the last … |
The End.