Character patterns set 2

Character patterns set 2
Character patterns set 2

In coding interview interviewer may ask you print any number pattern , alphabet pattern or an character patterns. We recommend you to follow our patterns series so you will feel comfortable with printing patterns. In this blog post you will find set 2 of character patterns.

We recommend you to solve other types patterns as well –

 Click on the pattern and you will get redirected to the code.

Pattern 1

FEDCBA
EDCBA
DCBA
CBA
BA
A
A
BA
CBA
DCBA
EDCBA
FEDCBA

Code for pattern 1

Pattern 2

     A 
    A B 
   A B C 
  A B C D 
 A B C D E 
A B C D E F 

Code for pattern 2

Pattern 3

FEDCBA
EDCBA 
DCBA  
CBA   
BA    
A   

Code for pattern 3

Pattern 4

F     
FE    
FED   
FEDC  
FEDCB 
FEDCBA

Code for pattern 4

Pattern 5

ABCDEF
ABCDE 
ABCD  
ABC   
AB    
A

Code for pattern 5

Leave a Reply