Sign in

A guide to the ‘DNA’ problem in CS50 Week 6.

Goal: To write a python script that can identify someone from a database, based on their DNA sequence.

The script must be called with two additional command line arguments; a csv database containing the number of times that particular sequences…


A guide to the ‘Speller’ problem in CS50 Week 5.

Goal: To implement a spell checker program in C. …


A guide to the ‘recover’ problem in CS50 Week 4.

Goal: To write a program in C that can recover JPEG images from a forensic file.

The program must accept one and only one command line argument, the name of the file the images will be recovered from.

The program…


A guide to the ‘Filter’ problem in CS50 Week 4 (more difficult version).

Goal: To write a series of functions in C that apply various image filters to bmp inputs.

The grayscale function should take an image and turn it into a black and white version of the same image.


A guide to the ‘Tideman’ problem in CS50 Week 3.

Goal: To write functions to determine the winner of a tideman election and to print the name of the winner. …


A guide to the ‘Plurality’ problem in CS50 Week 3.

Goal: To write functions to determine the winner of a plurality election and to print the name of the winner.

The vote function takes a single argument, a string called name, representing the name of the candidate who was voted…


A guide to the ‘Substitution’ problem in CS50 Week 2.

Goal: To write a program in C that implements a substitution cypher, as per the below.

$ ./substitution JTREKYAVOGDXPSNCUIZLFBMWHQ
plaintext: HELLO
ciphertext: VKXXN

The program must encrypt only the letters, irrespective of whether they are upper or lower case.

$…


A guide to the ‘Readability’ problem in CS50 Week 2.

Goal: To write a program that takes an input text and returns the grade level of complexity. …


A guide to the ‘credit’ problem in CS50 Week 1.

Goal: To write a program in C that can validate credit card numbers using the Luhn Algorithm, and return whether a valid card number is Mastercard, Visa or Amex. …


A guide to the more difficult version of the ‘Mario’ problem in CS50 Week 1.

Goal: To write a program in C that outputs a pyramid of blocks (using the # symbol) of a given size, with a gap in the middle.

JR

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store