Solve animals-and-legs count
SIG (Susquehanna)Data Scientist · Online AssessmentLast updated
This question evaluates a candidate's ability to translate a word problem into a system of linear equations and perform basic algebraic manipulation and arithmetic to determine unknown quantities.
In a barn are spiders, chickens, and cows. Spiders have 8 legs, chickens 2 legs, and cows 4 legs. There are 520 legs in total. The number of chickens is twice the number of cows, and the number of spiders is twice the number of chickens. How many chickens are there?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.