Upendra P
BAN USER
Comments (6)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
public static int isSurvied(int[] arr, int[] j)
{
if (arr == null  arr.Length == 0)
return 1;
if (j == null  j.Length == 0)
return arr.Length  1;
int count = arr.Length;
for(int i = 0; i < j.Length; i++)
{
count = count/j[i] + count %j[i];
}
if (count > 0)
return count  1;
else
return 1;
}

Upendra P
July 08, 2022 Comment hidden because of low score. Click to expand.
0
of 0 vote
public int isSurvied(int[] arr, int[] j)
{
if (arr == null  arr.Length == 0)
return 1;
if (j == null  j.Length == 0)
return arr.Length  1;
int count = arr.Length;
for(int i = 0; i < j.Length; i++)
{
count = count/j[i] + count %j[i];
}
if (count > 0)
return count  1;
else
return 1;
}
Comment hidden because of low score. Click to expand.
0
of 0 vote
public static int isSurvied(int[] arr, int[] j)
{
if (arr == null  arr.Length == 0)
return 1;
if (j == null  j.Length == 0)
return arr.Length  1;
int count = arr.Length;
for(int i = 0; i < j.Length; i++)
{
count = count/j[i] + count %j[i];
}
if (count > 0)
return count  1;
else
return 1;
}

Upendra P
July 08, 2022 Comment hidden because of low score. Click to expand.
0
of 0 vote
public int isSurvied(int[] arr, int[] j)
{
if (arr == null  arr.Length == 0)
return 1;
if (j == null  j.Length == 0)
return arr.Length  1;
int count = arr.Length;
for(int i = 0; i < j.Length; i++)
{
count = count/j[i] + count %j[i];
}
if (count > 0)
return count  1;
else
return 1;
}
 Upendra P July 08, 2022Comment hidden because of low score. Click to expand.
0
of 0 vote
public int isSurvied(int[] arr, int[] j)
{
if (arr == null  arr.Length == 0)
return 1;
if (j == null  j.Length == 0)
return arr.Length  1;
int count = arr.Length;
for(int i = 0; i < j.Length; i++)
{
count = count/j[i] + count %j[i];
}
if (count > 0)
return count  1;
else
return 1;
}
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
public static int isSurvied(int[] arr, int[] j)
 Upendra P July 08, 2022{
if (arr == null  arr.Length == 0)
return 1;
if (j == null  j.Length == 0)
return arr.Length  1;
int count = arr.Length;
for(int i = 0; i < j.Length; i++)
{
count = count/j[i] + count %j[i];
}
if (count > 0)
return count  1;
else
return 1;
}