Algorithm for determining who won rock paper scissors game, Data Structure & Algorithms

Suppose you are given the results of 5 games of rock-paper-scissors. The results are given to you on separate pieces of paper; each piece says either 'A' if the first person won, or 'B' if his opponent won.  

Write an algorithm, in English, for determining who won the best out of 5 games (person A or person B).

 

Posted Date: 3/20/2013 2:04:19 AM | Location : United States







Related Discussions:- Algorithm for determining who won rock paper scissors game, Assignment Help, Ask Question on Algorithm for determining who won rock paper scissors game, Get Answer, Expert's Help, Algorithm for determining who won rock paper scissors game Discussions

Write discussion on Algorithm for determining who won rock paper scissors game
Your posts are moderated
Related Questions
How sparse matrix stored in the memory of a computer?

multilist representation of graph

By changing the NULL lines in a binary tree to the special links called threads, it is possible to execute traversal, insertion and deletion without using either a stack or recursi

Define the term array. An array is a way to reference a series of memory locations using the same name. Each memory location is represented by an array element. An  array eleme

A binary tree in which if all its levels except possibly the last, have the maximum number of nodes and all the nodes at the last level appear as far left as possible, is called as

Explain State Space Tree If it is convenient to execute backtracking by constructing a tree of choices being made, the tree is known as a state space tree. Its root indicates a

Question 1. Explain the different types of traversal on binary tree 2. Explain the Prim's minimum spanning tree algorithm 3. Differentiate fixed and variable storage allo

Ask question #sdgsdgsdginimum 100 words accepted#

The advantage of list over Arrays is flexibility. Over flood is not a problem until the computer memory is bushed. When the individual record are quite large, it may be difficult t

So far, we now have been concerned only with the representation of single stack. What happens while a data representation is required for several stacks? Let us consider an array X