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
/**************************************************************************** | |
* fifteen.c | |
* | |
* HarvardX - CS50 | |
* Problem Set 3 | |
* | |
* Implements Game of Fifteen (generalized to d x d). | |
* | |
* Usage: fifteen d | |
* |
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
using System; | |
using System.Text; | |
using System.Windows; | |
namespace Password_Generator | |
{ | |
/// <summary> | |
/// Interaction logic for MainWindow.xaml | |
/// </summary> | |
public partial class MainWindow : Window |
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
/**************************************************************************** | |
* vigenere.c | |
* | |
* HarvardX - CS50 | |
* Problem Set 2 | |
* | |
* Encipher text using Vigenere's algorithm (ci = (pi + kj) % 26) | |
***************************************************************************/ | |
#include <cs50.h> |
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
/**************************************************************************** | |
* search.c | |
* | |
* HarvardX - CS50 | |
* | |
* Two search functions. Linear search and binary search | |
***************************************************************************/ | |
/** | |
* Linear search function |
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
/**************************************************************************** | |
* sort.c | |
* | |
* HarvardX - CS50 | |
* | |
* A selection of sorting functions | |
* Bubble sort, selection sort, and counting sort | |
***************************************************************************/ | |
/** |
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
/**************************************************************************** | |
* whodunit.c | |
* | |
* HarvardX - CS50 | |
* Problem Set 4 | |
* | |
* Change the colour of a BMP's pixels to reveal a hidden message | |
***************************************************************************/ | |
#include <stdio.h> |
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
/**************************************************************************** | |
* resize.c | |
* | |
* HarvardX - CS50 | |
* Problem Set 4 | |
* | |
* Resize a BMP image by a factor of n | |
***************************************************************************/ | |
#include <stdio.h> |
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
/**************************************************************************** | |
* fibonacci.c | |
* | |
* Display the Fibonacci sequence, characterised by the fact that every number | |
* after the first two is the sum of the two preceding ones | |
***************************************************************************/ | |
#include <stdio.h> | |
int main(void) |
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
/**************************************************************************** | |
* arc_distance.c | |
* | |
* Calculates the distance between two GPS points using the Law of Haversines | |
***************************************************************************/ | |
#include <stdio.h> | |
#include <math.h> | |
#define pi 3.14159265358979323846 |
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
/**************************************************************************** | |
* euclid.c | |
* | |
* Determine the greatest common divisor of two integers using Euclid's algorithm | |
* | |
* usage: ./eculid num1 num2 | |
***************************************************************************/ | |
#include <stdio.h> | |
#include <stdlib.h> |
OlderNewer