Skip to content
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

A guide to solving Quera problems with JavaScript #51

Open
HamidMolareza opened this issue Nov 19, 2024 · 5 comments
Open

A guide to solving Quera problems with JavaScript #51

HamidMolareza opened this issue Nov 19, 2024 · 5 comments
Labels
priority-medium This issue may be useful, and needs some attention. scope-documentation Improvements or additions to documentation

Comments

@HamidMolareza
Copy link
Owner

@HamidMolareza HamidMolareza added scope-documentation Improvements or additions to documentation priority-medium This issue may be useful, and needs some attention. labels Nov 19, 2024
@HamidMolareza
Copy link
Owner Author

Also, we can update the README file for the JavaScript template to suggest docker tool.

@ARiYaNSEp0-0
Copy link
Collaborator

I had another method for handling inputs with V8 in non-complex cases like non-complex inputs. Initially, to solve Quera problems, I used JavaScript V8 (because at that time I wasn"t familiar with Python). I created an index.html and an app.js file, and I was handling the inputs with prompt. It was working, and for submitting, I was just replacing prompt with readline. I think adding this method to a document for V8 is not a bad idea.

@HamidMolareza
Copy link
Owner Author

Every time I think about the approach Quera has taken for JavaScript, it seems like the best method is not solving problems with JavaScript at all! 😄

Anyway...
For those familiar with test writing, another good method might be to write a function to solve the problem and then use readline to handle input.
Of course, either many people aren’t familiar with it, or they don’t have the patience for it. Instead, they probably prefer a graphical solution like creating an HTML page.

The issue with these approaches is that errors might occur in input handling! In that case, you may need to upload the code multiple times and wait for Quera’s judging system to respond.

@HamidMolareza
Copy link
Owner Author

When updating the documents, I will include this method under your name.
Thank you.

@ARiYaNSEp0-0
Copy link
Collaborator

Every time I think about the approach Quera has taken for JavaScript, it seems like the best method is not solving problems with JavaScript at all! 😄

Anyway... For those familiar with test writing, another good method might be to write a function to solve the problem and then use readline to handle input. Of course, either many people aren’t familiar with it, or they don’t have the patience for it. Instead, they probably prefer a graphical solution like creating an HTML page.

The issue with these approaches is that errors might occur in input handling! In that case, you may need to upload the code multiple times and wait for Quera’s judging system to respond.

😁😁 Same here, I don"t solve algorithm challenges with JavaScript at all (just front-end challenges).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-medium This issue may be useful, and needs some attention. scope-documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants