Repository navigation
Drill · lap 1 · 4/9 · RET-101 · Predict what fits in the budget #83
akash-coded
started this conversation in
Hands-on Labs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
4 of 9 · RET-101 · Predict what fits in the budget
retrieval· medium ·predict· ~10 min · no AWS accountNo code to write. Read the packer, read the input, and say what comes out — before you run anything.
Your answer
Which ids does
pack(chunks, 1000)return, in order? Post it as a one-line python block:Then — and this is the actual question — is that the right set to have packed? Say why or why not in a sentence above the code block. The bot grades the list; other people grade the sentence.
What this proves
That you can trace a budget by hand, and that you noticed the packer's policy has a consequence:
continuerather thanbreakmeans a big chunk near the top does not stop smaller, lower-ranked ones from getting in behind it. That is a design decision, and it is not obviously right.Submit in this thread
Copy the block from the brief, edit it, and post it as a comment here. The bot replies within a couple of minutes with every check, the skill you demonstrated, and what to do next.
Brief in the repo: labs/drills/retrieval/RET-101 · next in the sequence:
MEM-101· how grading works · scoreboardAll reactions