## Zoho Interview Question for Students

Country: India
Interview Type: Written Test

Comment hidden because of low score. Click to expand.
0
of 0 vote

I'm not sure I understand your question. As it's phrases, you are getting the index input for an array of "4,7,44,47,74,77" Which doesn't seem a likely interview question. Can you clarify?

Comment hidden because of low score. Click to expand.
0
of 0 vote

I did not understand the question .... why not 47 ??

Comment hidden because of low score. Click to expand.
0
of 0 vote

``````public int findKth(int k)
{
if(k<=0)
{
return -1;
}
if(k==1)
{
return 4;
}
if(k==2)
{
return 7;
}
int[] arr=new int[k+1];
arr[1]=4;
arr[2]=7;
for(int i=3;i<arr.length;i++)
{
arr[i]=i%2!=0?(arr[(i>>2)]*10)+4:(arr[(i>>2)-1]*10)+7;
}
return arr[arr.length-1];
}
//Time complexity: O(K). Space Complexity: O(K)``````

Comment hidden because of low score. Click to expand.
0
of 0 vote

you_ser =[4,7,44,47,74,77]
lucky_num = input('Enter your lucky number : ')
if you_ser.idex(lucky_num):
print(you_ser[you_ser.idex(lucky_num)])
else:
print('Enter number in 4,7,44,47,74,77')

Comment hidden because of low score. Click to expand.
0
of 0 vote

sdfasdf

Comment hidden because of low score. Click to expand.
0
of 0 vote

it is codeforces question

Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

### Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

### Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.