gogoloda
BAN USER
Comments (2)
Followers (3)
Reputation 30
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
RepI am Ricky from the USA. I am 29 year old. I am doing a job. I am doing a ...
Repstacyrdavid, Associate at Abs india pvt. ltd.
Hi, I am Stacy working as a Cashier in Dollar store the US. I work for Us government to Collect ...
Repcarlaapepin, Area Sales Manager at Atmel
Hello, I am Carla and I live in San Bernardino, USA. I am working as a bookkeeper in a library ...
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
public void moveZeroes(int[] nums) {
- gogoloda February 16, 2018if (nums == null || nums.length == 0) {
return;
}
int curt = nums.length - 1;
for (int i = nums.length - 1; i >= 0; i--) {
if (nums[i] != 0) {
int temp = nums[i];
nums[i] = nums[curt];
nums[curt--] = temp;
}
}