about | help | code help+videos | done | prefs |
Given a boolean parameter value, negate its value num times. For instance: if the value of value parameter is true and the value of num parameter is 3, the result would be false as the process of negation needs to happen 3 times: true->false(1)->true(2)->false(3) if the value of num is negative, return the value instead. negate(false, 0) → false negate(false, 1) → true negate(true, 1) → false ...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: 100
Copyright Nick Parlante 2017 - privacy