about | help | code help+videos | done | prefs |
A farm consists entirely of cows and chickens. Given the number of animal heads and animal legs on the farm, return the number of cows on the farm. numCows(3, 6) → 0 numCows(5, 20) → 5 numCows(2, 6) → 1 ...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 Post-solution available
Copyright Nick Parlante 2017 - privacy