Skip to content

Instantly share code, notes, and snippets.

@SLrepo
SLrepo / gist:6c0ca0ffe6c44f364a3d
Created February 17, 2016 01:43
longest cross of ones.
//the program is to find the longest cross made of ones in a matrix containing only ones and zeros.
//small helper class
class Four {
public:
Four(): up(0), bottom(0), left(0), right(0){}
int up;
int bottom;
int left;
int right;
};