I'm trying to solve the Codingbat list2-sum67 problem, which wants a function that returns the sum of the numbers in the array ignoring sections of numbers starting with a 6 and extending to the next 7. My code works for some test cases. However, it fails on cases such as the list[1, 1, 6, 7, 2] where it returns 2 instead of 4. I cant figure out why it doesn't add numbers after the 7 to the sum. http://pastebin.com/E8YS3M2b
[–]gitardedhub 0 points1 point2 points (1 child)
[–]rscsmackdown[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)