Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Creating a JS file for solving-pascals tringle.#1312

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Ahmad-A0 merged 3 commits intoneetcode-gh:mainfromaadil42:main
Nov 2, 2022

Conversation

aadil42
Copy link
Contributor

@aadil42aadil42 commentedOct 23, 2022
edited
Loading

@aadil42
Copy link
ContributorAuthor

Hey,@voski Please tell me if I did it right this time.

@voski
Copy link
Contributor

voski commentedOct 23, 2022
edited
Loading

Hey,@voski Please tell me if I did it right this time.

@aadil42 This pull request is#1312

The very first comment is the description of a pull request. In this case, it is#1312 (comment)

I am quoting the description below. Does it look right to you? The files modified section is wrong, the language section is wrong, and the submission URL is not filled in again.

Solved pascals-triangle in JS.
File(s) Modified: 1-Two-Sum.py, 2-Add-Two-Numbers.py, etc...
Language(s) Used: python, javascript, etc...
Submission URL:https://leetcode.com/submissions/detail/xxxxxxxxx/

Take a look at this other pull request#1309 The description is updated to reflect the actual changes. Here is the description from#1309

You can see that the files modified section is updated to reflect the file in the pull request0146-LRU-Cache.rb. Also, the language section is updated to the correct languageruby. And finally, the submission URL is updated and you can follow that link to see the results on leetcode.

@aadil42
Copy link
ContributorAuthor

@voski I'm so sorry. I am new to contributing to repos. I really apologize for the confusion. I updated the description of a PR. Please check and let me know if it's right this time. I am so sorry and Thank you for explaining.

@aadil42
Copy link
ContributorAuthor

Hey@voski, Did I do it wrong again? please let me know. Thank you

@aadil42
Copy link
ContributorAuthor

Hey@voski, my PR hasn't been merged yet so this is just a kind reminder. Let me know if I need to do anything.

@voski
Copy link
Contributor

Hey@voski, my PR hasn't been merged yet so this is just a kind reminder. Let me know if I need to do anything.

Hello there. I actually don’t have merge permissions on this repo. I’m just another contributor like you.

@dissesmac
Copy link
Collaborator

dissesmac commentedOct 27, 2022
edited by Ahmad-A0
Loading

I think you can do it without checking if size > 2

Just I don't write on JS. I can share my solution on Swift.
It would be less code and more understandable.

classSolution{func generate(_ numRows:Int)->[[Int]]{varresult=[[Int]](repeating:[1], count: numRows)foriin1..<numRows{result[i]=[Int](repeating:1, count: i+1)forjin1..< i{result[i][j]=result[i-1][j-1]+ result[i-1][j]}}return result}}

I don't know why GitHub formats my code in this view.
Link on submission.

https://leetcode.com/problems/pascals-triangle/submissions/831121961/

@aadil42
Copy link
ContributorAuthor

@diss1993 I'll look into your solution soon. Thanks for sharing.

@aadil42
Copy link
ContributorAuthor

@voski I thought you had merge permission. Anyway, thank you for your support and advice on how to make a proper PR. Thanks, huge thank you!

@aadil42
Copy link
ContributorAuthor

@voski btw, I know you don't have merge permission. But is my PR ok? I just wanted to ask to make sure. Thank you again!

@voski
Copy link
Contributor

@aadil42

I can't speak to your solution code. I haven't been working with JS much lately and I just don't have the time to get into it.

As far as your PR description it is a lot better. However, the PR template has a bullet list, with bold text, and some italic text. In this submission, you have removed all the formatting.

The content is good but the styling is lost!

@aadil42
Copy link
ContributorAuthor

@voski Thank you, brother! I fixed the formatting. I didn't what text to make italics so left it. but I did the bullet points.

@Ahmad-A0
Copy link
Collaborator

Thanks for contributing (and collaborating)!

@Ahmad-A0Ahmad-A0 merged commit0245ee5 intoneetcode-gh:mainNov 2, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@aadil42@voski@dissesmac@Ahmad-A0

[8]ページ先頭

©2009-2025 Movatter.jp