This repository consists of various pattern problems including their solution starting from easy level going to hard level.
**** You can also contribute new problems by contacting at thedeepanshujain@gmail.com ****
-
Windows users must have codeblocks or any similar C++ IDE installed on their system to run and code in C++.
-
MacOS users can either use XCode or the terminal for compilation of files (latter is recommended)
-
Linux users have to do this from terminal
N = 4
1
1 1
1 1 1
1 1 1 1
N = 4
1
2 3
4 5 6
7 8 9 10
N = 4
1
2 3
3 4 5
4 5 6 7
N = 4
1 1 1 1
1 1 1
1 1
1
N = 4
1 2 3 4
1 2 3
1 2
1
N = 4
1
1 1
1 1 1
1 1 1 1
N = 4
1
2 3
4 5 6
7 8 9 10
N = 4
1
2 3
3 4 5
4 5 6 7
N = 4
1 1 1 1
1 1 1
1 1
1
N = 4
1 2 3 4
1 2 3
1 2
1
N = 4
A
B B
C C C
D D D D
N = 4
1 1 1 1
0 0 0
1 1
0
N = 4
D
C D
B C D
A B C D
N = 4
1
3 2
4 5 6
10 9 8 7
N = 4
A B C D D C B A
A B C C B A
A B B A
A A
N = 4
4 4 4 4
3 4 4 4
2 3 4 4
1 2 3 4
N = 4
0
1 0 1
2 1 0 1 2
3 2 1 0 1 2 3
4 3 2 1 0 1 2 3 4
N = 5 (N is always odd)
*
* *
* * *
* *
*
N = 5 (N is always odd)
*
* * *
* * * * *
* * *
*
N = 5 (N is always odd)
1
1 2 3
1 2 3 4 5
1 2 3
1
N = 4
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
N = 5 #####(N is always odd)
*
* *
* * *
* *
*
N = 5
1
1 1
1 2 1
1 2 2 1
1 2 2 2 1
N = 4
1
1 1
2 0 2
3 0 0 3
N = 4
*
* * *
* * * * *
* * * * * * *
N = 4
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
N = 5
5 4 3 2 *
5 4 3 * 1
5 4 * 2 1
5 * 3 2 1
* 4 3 2 1
N = 4
* 0 0 0 * 0 0 0 *
0 * 0 0 * 0 0 * 0
0 0 * 0 * 0 * 0 0
0 0 0 * * * 0 0 0
N = 5
1 1
1 2 2 1
1 2 3 3 2 1
1 2 3 4 4 3 2 1
1 2 3 4 5 5 4 3 2 1
N = 5 #####(N is always odd)
* * * * *
* * * *
* *
* * * *
* * * * *
N = 5
1 1
2 2
3 3
4 4
5
4 4
3 3
2 2
1 1
N = 5
1
2 3
4 5 6 7
8 9 1 2 3 4 5 6
7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4
N = 5
1 * * * * *
2 * * * *
3 * * *
4 * *
5 *
4 * *
3 * * *
2 * * * *
1 * * * * *