# Description should be clear about a move like 1-8

• I thought 1-8 touches 4 and 5, and they should be tested. However my code with such a check fails. Then I removed this test, and my code passed.

• Could you be more specific? I do the similar check as well, and my code fails. So, moves such as 1-8, 2-9, 3-4, 7-2 do NOT touch the two keys in the way?!

• Yep, and I only figured this out by experimenting on test cases. That's why I complained.

• upvote. if the input is 2, 2, the output is 56 which indicates 1-8, 2-9 is valid.

• This post is deleted!

• I agree with you. I figure it out by trying it on my android phone!

• @ruixia Right. it should definitely be explained - it is really counter intuitive. I was going crazy by trying to understand what was wrong with my code.

• @agave @administrators @admin maybe want to look into this and add clarification in the problem description.

• @liangyue268 Same here!

• If try on ur android phone, 1-8 won't actually touch 4 and 5 because each number is represented by dot .... not the square as illustrated ....
so I guess the illustration should be corrected

• @三千世界
You can't safely make the assumption 1-8 doesn't go across 4 and 5 (especially based on some particular UI design of one of 100000 cells), just like I couldn't make the assumption 1-8 does. The description should clearly describe it.
If it is the interview, this is ABSOLUTELY a clarification question you MUST ask before start coding.

• Since I don't have an Android device to test what the unlock screen looks like, I get into the same trouble....I thought 1-8 is invalid but actually it is not.......went crazy.

• Agree, the description is so unclear and I'm so confused.

• I have met as same confusion as yours. Upvoted.

• The problem is straightforward DFS question but the description and example is very misleading. The last example says jump from 9-2 is valid but why? It pass through two cells - 5 and 6.

• Can not agree more.
It's quite an ordeal for me to add codes for testing touches like"2-9", but always get wrong answer.
I feel like being played as fool after saw the posted correct answers.

• I agree with this. Wasted some time thinking about how to take care of those cases too!

• +1. Wasted a few hours. BTW I'm iOS developer/user :)

• @1337c0d3r Could you update the description, or add an example indicating move `1->8` is valid?

• If 1->8 is not a valid move, I think this problem is harder to solve.

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.