python-cpp-html-programs-projects icon indicating copy to clipboard operation
python-cpp-html-programs-projects copied to clipboard

Alphabet Rangoli (python or cpp only)

Open ArmanKumar21 opened this issue 2 years ago • 6 comments

You are given an integer, . Your task is to print an alphabet rangoli of size . (Rangoli is a form of Indian folk art based on creation of patterns.)

Different sizes of alphabet rangoli are shown below:

#size 3

----c---- --c-b-c-- c-b-a-b-c --c-b-c-- ----c----

#size 5

--------e-------- ------e-d-e------ ----e-d-c-d-e---- --e-d-c-b-c-d-e-- e-d-c-b-a-b-c-d-e --e-d-c-b-c-d-e-- ----e-d-c-d-e---- ------e-d-e------ --------e--------

#size 10

------------------j------------------ ----------------j-i-j---------------- --------------j-i-h-i-j-------------- ------------j-i-h-g-h-i-j------------ ----------j-i-h-g-f-g-h-i-j---------- --------j-i-h-g-f-e-f-g-h-i-j-------- ------j-i-h-g-f-e-d-e-f-g-h-i-j------ ----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j---- --j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j-- j-i-h-g-f-e-d-c-b-a-b-c-d-e-f-g-h-i-j --j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j-- ----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j---- ------j-i-h-g-f-e-d-e-f-g-h-i-j------ --------j-i-h-g-f-e-f-g-h-i-j-------- ----------j-i-h-g-f-g-h-i-j---------- ------------j-i-h-g-h-i-j------------ --------------j-i-h-i-j-------------- ----------------j-i-j---------------- ------------------j------------------ The center of the rangoli has the first alphabet letter a, and the boundary has the alphabet letter (in alphabetical order).

Function Description

Complete the rangoli function in the editor below.

rangoli has the following parameters:

int size: the size of the rangoli Returns

string: a single string made up of each of the lines of the rangoli separated by a newline character (\n) Input Format

Only one line of input containing , the size of the rangoli.

Constraints: 0<size<27

ArmanKumar21 avatar Oct 14 '22 13:10 ArmanKumar21

I can solve this issue most optimally can you assign me this?

Abhishek-Vaidya avatar Oct 14 '22 14:10 Abhishek-Vaidya

I have solved this problem and created the PR please check it.

Abhishek-Vaidya avatar Oct 14 '22 14:10 Abhishek-Vaidya

plz assign it to me

sangalgovind avatar Oct 14 '22 15:10 sangalgovind

Can you assign it to me

MadScientist46290 avatar Oct 16 '22 07:10 MadScientist46290

Good morning , We are a team of 3 members from St Francis Institute of Technology (Mumbai , Maharashtra). For our Resource open source project Lab (ROSPL) , we are interested to work on the given issue. Kindly assign this (Alphabet Rangoli) issue to us . Thank You.

Abhigitlog avatar Aug 31 '23 06:08 Abhigitlog

I have solved this issue. So , can u assign me and merge it.

Abhigitlog avatar Oct 16 '23 18:10 Abhigitlog