Skip to content

[FEATURE REQUEST]<Spiral Matrix II> #4429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kirti1211c opened this issue Sep 29, 2023 · 11 comments
Closed

[FEATURE REQUEST]<Spiral Matrix II> #4429

kirti1211c opened this issue Sep 29, 2023 · 11 comments

Comments

@kirti1211c
Copy link

What would you like to Propose?

We can add the Spiral Matrix II in other section.
Problem Statement - Given a positive integer n, generate an n x n matrix filled with elements from 1 to n^2 in spiral order.
Example:
Input: n=3
Output: [[1,2,3],[8,9,4],[7,6,5]]
Explanation:
image

Issue details

The algorithm will fill the matrix in spiral order and store the answer in an array of array and hence, return the same array.

Additional Information

No response

@kirti1211c kirti1211c changed the title [FEATURE REQUEST] [HACKTOBERFEST] <Spiral Matrix II> [FEATURE REQUEST]<Spiral Matrix II> Sep 29, 2023
@ssom01-github
Copy link

@kirti1211c, Hello, I want to be assigned to this, and I can provide you with the best time and space complexity. Kindly assign this to me.

@zaidiyazdan
Copy link

Hii ,@kirti1211c I want to work on this issue Will provide the best solution with proper explanation.

@Monachaudhary
Copy link

Hello, I would like to work on this issue. I can solve it in best time and space complexity. Kindly assign to me.

@VarshaEkka
Copy link

@kirti1211c Hi, I would like to work on this issue. I can provide the solution to this with the best possible explanation.

@Ananyasiingh
Copy link

I'd appreciate working on this issue. Kindly assign it to me. I will provide the solution with explanation.

@Parth152004
Copy link

I can solve this problem in very little time and space complexity. can you assign this problem to me?

@abhichauhan824
Copy link

Hello @kirti1211c give me a chance, i will provide you more efficient and readable code

@Akash2866
Copy link

Hii @kirti1211c can you please assign me to this issue. I am looking to contribute in this since last 2 days, thanks.

@madm234
Copy link

madm234 commented Sep 30, 2023

I have already solved this problem in a simplistic manner which is very easy to understand. I can contribute to this .

@md-shamim-ahmad
Copy link

@madm234 @kirti1211c @Akash2866 @Parth152004 @abhichauhan824 @ssom01-github @Ananyasiingh @VarshaEkka

You can also add your solution code into this repository

@Akash2866
Copy link

@kirti1211c I have created a pull request regarding this issue, please look into it,thanks. #4455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests