Strategy Statement:
Whether you're manning the cash register or managing a team, you'll have to make sure people understand you. Interviewer is lo ...

# Search results for random

## Filling Matrix Interview Puzzle

Posted by Job-Interview
Puzzle:
You are given a matrix N x M size. Each cell of the matrix contains a random capital letter of English alphabet [“A”..”Z”]. If matri ...

In other terms, you have random number generator function Rnd2 you need to produce Rnd6 function by using Rnd2.

Answer
In probability theory, the expectation of a random variable is the weighted average of all possible values that this random variable can take o ...

Considering following definition of linked list data structure
class Node
{
public string Data = string.Empty;
...

Linked lists allow only sequential access to elements O(n) while arrays allow random access O(1). Linked lists requires an extra storage for reference ...

The task is to write a function which at any give point would return random character with equal proability of any character being read from infinite ...

## Write a function which produces a random integer in the range 1 to 7 based on function which returns random integer in the range 1 to 5

Posted by Job-Interview
The task is given a function rand5() which produces a random integer in the range 1 to 5, write a function rand7() which produces a random integer in ...

**Company where asked this question:**Google, Microsoft