You are not logged in. Please login at www.codechef.com to post your questions!

×

KEYPAD - Editorial

Crack the passcode

Problem :
practice

Tags: Mathematics, Brute force.

Author: Kaustav
Tester: Murali

There are many ways to approach this such as iterating over 2 dimensional keypad for the paths satisfying the Manhattan length constraint of 5 and printing the corresponding code and eliminating the case where there are unwanted characters. Also an adjacency array for every key of the keypad can be created and can be traversed to get all the possible solution paths with the given constraint.

asked 12 Jan, 15:26

mmmreddy's gravatar image

0★mmmreddy
121
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×115
×32

question asked: 12 Jan, 15:26

question was seen: 74 times

last updated: 12 Jan, 15:26