Search results for random


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 ...
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 ...
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