Thoughtfull thought

Life is going to beat you up , it wouldn't be fair if you don't throw some punches back..

SQUARE Number patterns ...

SQUARE Number patterns...

Hey guys , hope you are coding .. In a series of learning number patters ,our today's topic is "square number patterns" .. without wasting any time .. we start learning some new patterns...


Square number patterns


11111
11111
11111
11111
11111
Pattern 1

11111
00000
11111
00000
11111  
Pattern 2

01010
01010
01010
01010
01010
Pattern 3

11111
10001
10001
10001
11111
Pattern 4 

11111
11111
11011
11111
11111
Pattern 5

10101
01010
10101
01010
10101
Pattern 6

11011
11011
00000
11011
11011
Pattern 7

10001
01010
00100
01010
10001
Pattern 8

01110
10001
10001
10001
01110
Pattern 9

11111
22222
33333
44444
55555
Pattern 10

12345
12345
12345
12345
12345
Pattern 11

12345
23456
34567
45678
56789
Pattern 12

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25 
Pattern 13

55555
54444
54333
54322
54321
Pattern 14

12345
23455
34555
45555
55555
Pattern 15

12345
23451
34512
45123
51234
Pattern 16

12345
21234
32123
43212
54321
Pattern 17 

555555555
544444445
543333345
543222345
543212345
543222345
543333345
544444445
555555555
Pattern 18

1 2 3 4 5 
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
Pattern 19

These are some very interesting problems .. some of the problems are seem to be very easy .. but they are quite logical .. problems like 18 are asked in hackerrank ..  Problem 19 and 17 are quite logical too .. Give them  a try .. They only need some practice and basic knowledge of C programming , Loops , if else statements.... Comment down the solutions if you can answer them ... 
Ask for any query or solutions related to above post 

KEEP LOVING !! KEEP CODING!!

SQUARE Number patterns ... SQUARE Number patterns ... Reviewed by Heisenberg on 12:42 Rating: 5

4 comments:

Powered by Blogger.