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 ...
Search results for random
Filling Matrix Interview Puzzle
Posted by CMaster
In other terms, you have random number generator function Rnd2 you need to produce Rnd6 function by using Rnd2.
What's the expectation of dice roll ?
Posted by CMaster
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 ...
How to generate random linked list?
Posted by CMaster
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 CMaster
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
Company where asked this question: Google, Microsoft
Semi random test case are the test case in which few steps are random inputs into the system .
The intention is to crash the system with garbage data. ...
