Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 2.22 KB

File metadata and controls

60 lines (39 loc) · 2.22 KB

Blackbaud C# interview question

This readme contains instructions for setting up the code for the interview. It also contains the first question.

Completing this problem before your scheduled interview is optional.


Solution setup

The Blackbaud.Interview directory contains starter code for your upcoming coding interview. Prior to your interview, please take some time to ensure you can edit the files and compile the application.

During the coding interview you will edit the attached solution files in an IDE while sharing your screen.

Visual Studio, VS Code, or Rider are all acceptable IDEs. The code targets .NET 8.0.

If you are unable to use an IDE during the interview, a browser-based option is available using https://vscode.dev. Using vscode.dev requires signing in with either a GitHub or Microsoft account.

Helpful links


Deck of cards interview question

The Deck of cards

You have been given an object model (in Blackbaud.Interview.Cards) for a standard deck of 52 playing cards. (Follow links for more explanation of these terms, if you're not familiar with a deck of cards.)

Standard deck of 52 playing cards

The classes in the object model are:

  • Deck: A collection of 52 cards
  • 52 Cards: The value of each card is the combined rank and suit
  • 13 Ranks: Numbers 2-10, Jack, Queen, King, and Ace
  • 4 Suits: Spades, Hearts, Diamonds, and Clubs

A new deck always has the same order for the cards.

The code in Program.cs deals all the cards and displays the value (rank & suit) of each.

Part 1 - Shuffling

Requirement: The deck of cards needs to be shuffled a given number of times.

After shuffling, deal all the cards and display the value (rank & suit) of each.