Skip to content

Instantly share code, notes, and snippets.

@MattDiesel
MattDiesel / example.c
Last active April 26, 2017 01:04
Delete multiples for prime sieve on linked list
node* Deletemultiples(node* head, int k)
{
node* temp = head, *old = head, *todelete;
if (head == NULL)
return NULL;
while (temp!=NULL) {
if (temp->data % k ==0 && temp->data != k) {
todelete = temp;
import random
peeps = {
'Matt': '',
'Al': '',
'Bebop': '',
'Mum': '',
'Dad': '',
'Gramps': ''
}