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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" | |
content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="colors.css"> | |
<link rel="stylesheet" |
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 <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#define MAX 28123 | |
int get_divisors(int, int **); | |
int main(void) { | |
int *divisors; |
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 <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
int get_divisors(int, int **); | |
int main(void) { | |
int *divisors; | |
int num_divisors = get_divisors(100, &divisors); | |
int i; |
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
/* llist.c | |
* Generic Linked List implementation | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include "llist.h" | |
llist *llist_create(void *new_data) | |
{ |
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
import java.util.Arrays; | |
public class Sort | |
{ | |
/* | |
Selection is an in-place sort | |
Time: N^2 | |
The time it takes to sort is independent of how well sorted the array | |
already is | |
*/ |