R Programmer Interview Questions

8,120 r programmer interview questions shared by candidates

A function foo() represents a biased coin. It returns 1 60% of the time and 0 40% of the time. Write another function that returns 0 with 50% chance and 1 with 50% chance. You can only use foo(). No other library function can be included
avatar

R & D Software Engineer

Interviewed at Mobicip

3.9
Jul 28, 2016

A function foo() represents a biased coin. It returns 1 60% of the time and 0 40% of the time. Write another function that returns 0 with 50% chance and 1 with 50% chance. You can only use foo(). No other library function can be included

Viewing 7321 - 7330 interview questions

Glassdoor has 8,120 interview questions and reports from R programmer interviews. Prepare for your interview. Get hired. Love your job.