Domanda di colloquio di National Instruments

Sort a deck of cards.

Risposta di colloquio

Anonimo

6 mar 2016

Used an array to represent the card deck. Generate a random number between 0 and 51. Pull that card out into a variable. Generate another random number. Put that card in the first spot, and put the card in memory into the second spot. Repeat xxx number of times.