Add Example for random input and output generation in tutorials#41
Closed
MUFFANUJ wants to merge 1 commit intoSubmitty:mainfrom
Closed
Add Example for random input and output generation in tutorials#41MUFFANUJ wants to merge 1 commit intoSubmitty:mainfrom
MUFFANUJ wants to merge 1 commit intoSubmitty:mainfrom
Conversation
Signed-off-by: MUFFANUJ <anujsinghhero292@gmail.com>
Author
Successful submission of above example. @bmcutler @MasterOdin
|
04vmatsibekker
requested changes
Mar 28, 2025
| @@ -0,0 +1,16 @@ | |||
| def generate_total_sum(arr): | |||
| sum = 0 | |||
There was a problem hiding this comment.
can't we just do sum(arr) rather than this?
| @@ -0,0 +1,16 @@ | |||
| def generate_total_sum(arr): | |||
| sum = 0 | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Added example for random input and random output generation.
Added following files
generator.py- generates input file for question, with first line as size of array and other lines as elements of arraysolution.py- instructor solution for generation of output for evaluation.config.json- configuration of problem statement as well as testcasesIn next PR, I will try to add documentation related to question generation as well as correct bifurcations of question types.