Upendra P
BAN USERpublic 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;
}
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;
}
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;
}
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, 2022public 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;
}
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;
}