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
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE TypeSynonymInstances #-} | |
module Polyominoes (Polyominoes, findPolyominoes, findPolyplets) where | |
import Data.HashSet (HashSet) | |
import qualified Data.HashSet as HS | |
import Data.List (nub, intercalate) | |
type Polyomino = HashSet (Int, Int) |
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 this |
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
void strcpy(const char *src, char *dst); | |
void strcat(char *src, const char *str); | |
int strlen(const char *src); | |
void strcpy(const char *src, char *dst) | |
{ | |
for (int i = 0; src[i] != '\0'; i++) | |
dst[i] = src[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
#include <iostream> | |
int main(int argc, char *argv[]) { | |
printf("hello, world"); | |
return 0; | |
} |