Skip to content

Add Example for random input and output generation in tutorials#41

Closed
MUFFANUJ wants to merge 1 commit intoSubmitty:mainfrom
MUFFANUJ:add_random_input_example
Closed

Add Example for random input and output generation in tutorials#41
MUFFANUJ wants to merge 1 commit intoSubmitty:mainfrom
MUFFANUJ:add_random_input_example

Conversation

@MUFFANUJ
Copy link
Copy Markdown

Added example for random input and random output generation.

Added following files

  1. generator.py - generates input file for question, with first line as size of array and other lines as elements of array
  2. solution.py - instructor solution for generation of output for evaluation.
  3. config.json - configuration of problem statement as well as testcases

In next PR, I will try to add documentation related to question generation as well as correct bifurcations of question types.

Signed-off-by: MUFFANUJ <anujsinghhero292@gmail.com>
@MUFFANUJ
Copy link
Copy Markdown
Author

Screenshot 2024-02-17 at 4 30 45 AM Successful submission of above example. @bmcutler @MasterOdin

@@ -0,0 +1,16 @@
def generate_total_sum(arr):
sum = 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can't we just do sum(arr) rather than this?

@@ -0,0 +1,16 @@
def generate_total_sum(arr):
sum = 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

here too

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Mar 28, 2025
@bmcutler bmcutler closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants