employer cover photo
employer logo
employer logo

National Instruments

Is this your company?

National Instruments Interview Question

Sort a deck of cards.

Interview Answer

Anonymous

Mar 6, 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.