about | help | code help+videos | done | prefs |
A positive integer has an "igloo kiss" whenever it has any adjacent even digits touching each other. Return the number of igloo kisses each number has. For example, 64852 has 2 igloo kisses because the 6 and 4 are adjacent even integers and so are the 4 and 8. This can be solved nicely using recursion, but it is not required. iglooKissAdvanced1(2066884444) → 9 iglooKissAdvanced1(64521) → 1 iglooKissAdvanced1(7658314) → 0 ...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: 430
Copyright Nick Parlante 2017 - privacy