This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Russell Folk | |
Coder Radio, Programming Challenge #001 | |
22 July 2016 | |
""" | |
def get_recommendation(dealers_card, players_cards): | |
""" | |
Look up and return the appropriate recommendation for what move the player | |
should make according to the dealer's card on display and the player's own |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "matrix.h" | |
void | |
allocate_matrix ( Matrix * m , int rows , int cols ) | |
{ | |
int i ; | |
printf ( "allocating matrix m\n" ) ; | |
//m = ( Matrix * ) malloc ( sizeof ( Matrix ) ) ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def FizzBuzz ( num ) : | |
if i % 5 == 0 : | |
print ( "Fizz" , end = "" ) | |
if i % 3 == 0 : | |
print ( "Buzz" , end = "") | |
number = 1000 | |
for i in range ( number ) : | |
print ( str ( i ) + ": " , end = "" ) | |
FizzBuzz ( i ) |