Skip to content

Instantly share code, notes, and snippets.

//---------------------------------------------------------------------------
// Prüfungsaufgabe Sommer 2010
//---------------------------------------------------------------------------
#include <stdio.h>
#include <conio.h>
#include <iostream>
using namespace std;
@JeGa
JeGa / gist:915186
Created April 12, 2011 08:38
Login name
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <conio.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
char * stringToUpper(char * str) {
for(int i = 0; i < (int)strlen(str); i++)
@JeGa
JeGa / gist:921635
Created April 15, 2011 12:46
code jam
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <conio.h>
#define IN "A-large-practice.in"
#define OUT "A-large-practice.out"
using namespace std;
#include <stdio.h>
#include <windows.h> // Windows sleep
#define TABLE_SIZE 3
typedef enum {TYPE_INT, TYPE_LONG, TYPE_CHAR} dataType;
typedef struct {
void *data;
dataType type;
@JeGa
JeGa / sudoku.py
Created February 15, 2021 16:51
Simple Sudoku solver using backtracking
import numpy as np
import timeit
A = np.array(
[[6, 0, 0, 0, 0, 0, 0, 5, 1],
[0, 0, 0, 3, 0, 0, 9, 0, 0],
[0, 0, 8, 0, 0, 0, 0, 0, 0],
[0, 4, 0, 7, 0, 0, 5, 0, 0],
[0, 0, 0, 0, 9, 0, 8, 0, 0],
[0, 0, 1, 8, 5, 0, 0, 3, 7],