Skip to content

Instantly share code, notes, and snippets.

@meylingtaing
meylingtaing / colorizer.html
Last active September 21, 2022 16:34
my ascii art colorizer
<!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"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define MAX 28123
int get_divisors(int, int **);
int main(void) {
int *divisors;
#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;
@meylingtaing
meylingtaing / llist.c
Last active September 24, 2024 15:49
A generic linked list library for C
/* llist.c
* Generic Linked List implementation
*/
#include <stdlib.h>
#include <stdio.h>
#include "llist.h"
llist *llist_create(void *new_data)
{
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
*/