Skip to content

Conversation

@r3medy
Copy link

@r3medy r3medy commented Dec 31, 2024 β€’

Added roman to integer code snippet

Description

Type of Change

  • ✨ New snippet
  • πŸ›  Improvement to an existing snippet
  • 🐞 Bug fix
  • πŸ“– Documentation update
  • πŸ”§ Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • Documentation has been updated (if applicable).
  • There are no new warnings or errors from my changes.

Related Issues

Closes #

Additional Context

Screenshots (Optional)

Click to view screenshots

Added roman to integer code snippet
@netlify
Copy link

netlify bot commented Dec 31, 2024 β€’

βœ… Deploy Preview for quicksnip ready!

Name Link
πŸ”¨ Latest commit f831d12
πŸ” Latest deploy log https://app.netlify.com/sites/quicksnip/deploys/6774540c1ca1b00009e3019a
😎 Deploy Preview https://deploy-preview-71--quicksnip.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for the contribution !
I've seen you have created two PR and closed them before this one ? Is this for any particular issue/reason ?
Please see the following comment on your code before we can move on with your snippet.

" if(!toMiss.includes(i)) {",
" if(next > curr) {",
" output+=(next-curr);",
" toMiss.push(i+1);",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having a toMiss array, you could just add 1 to i

@Mathys-Gasnier
Copy link
Collaborator

Hey, we recently updated how snippets are stored, please update your PR to match the changes, you will be able to see how to add snippets in CONTRIBUTING.md.
For ref: #87

@majvax majvax added the update needed Code needs to be updated. label Jan 3, 2025
@Mathys-Gasnier
Copy link
Collaborator

Hey, changes were requested on your PR, but we got no news for more than a week, Closing this as stale.

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

Labels

update needed Code needs to be updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants