about | help | code help+videos | done | prefs |
quiz2021_10_04_APSLHL_guards
Write a method that analyzes the famous "guard" scene from "Monty Python and the Holy Grail". There are conditions named 'stay', 'guard', 'awake', and 'preventLeave'. Each of these conditions means something specific in the scene. You do NOT have to know about the scene though! All you have to do is return the number of these conditions that are 'true'. Look at the test data for examples. quiz2021_10_04_APSLHL_guards(true, true, true, true) → 4 quiz2021_10_04_APSLHL_guards(false, false, true, false) → 1 quiz2021_10_04_APSLHL_guards(false, true, true, true) → 3 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy