Click here to Skip to main content
15,911,786 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionDesign Secrete key generation program or Algorithm Pin
Durga Prasad Chauhan25-Mar-16 23:38
Durga Prasad Chauhan25-Mar-16 23:38 
C#
<pre lang="C#">
Adam works in the in networking security cell. He wants to generate secret keys
following a pattern. The pattern consists of the characters X and Y.
where X means increasing and Y means decreasing. Help him devise an
algorithm to generate the secret key which is the minimum number encoded
following that pattern. Digits from 1-9 and digits can’t repeat.

Sample Input:                                   Sample Output:

X                                                   12
YXYX                                             21435
YYXYYXXY                                    321654798
</pre>

AnswerRe: Design Secrete key generation program or Algorithm Pin
Sascha Lefèvre26-Mar-16 1:02
professionalSascha Lefèvre26-Mar-16 1:02 
Questionalgorithm Pin
jeanBrooklyn22-Mar-16 6:07
professionaljeanBrooklyn22-Mar-16 6:07 
AnswerRe: algorithm Pin
Richard MacCutchan22-Mar-16 7:17
mveRichard MacCutchan22-Mar-16 7:17 
AnswerRe: algorithm Pin
Matt T Heffron22-Mar-16 10:34
professionalMatt T Heffron22-Mar-16 10:34 
AnswerRe: algorithm Pin
Afzaal Ahmad Zeeshan23-Mar-16 10:28
professionalAfzaal Ahmad Zeeshan23-Mar-16 10:28 
Questiondivide and conquer master theorem Pin
gweijwoweij21-Mar-16 14:38
gweijwoweij21-Mar-16 14:38 
QuestionHow to decrypt unknown algorithm without a key? Pin
Member 1202769617-Mar-16 0:02
Member 1202769617-Mar-16 0:02 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Sascha Lefèvre17-Mar-16 1:29
professionalSascha Lefèvre17-Mar-16 1:29 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Eddy Vluggen17-Mar-16 1:41
professionalEddy Vluggen17-Mar-16 1:41 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Richard MacCutchan17-Mar-16 2:52
mveRichard MacCutchan17-Mar-16 2:52 
AnswerRe: How to decrypt unknown algorithm without a key? Pin
Daniel Pfeffer17-Mar-16 2:57
professionalDaniel Pfeffer17-Mar-16 2:57 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
harold aptroot17-Mar-16 6:18
harold aptroot17-Mar-16 6:18 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Member 1202769617-Mar-16 9:17
Member 1202769617-Mar-16 9:17 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
harold aptroot17-Mar-16 10:16
harold aptroot17-Mar-16 10:16 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Eddy Vluggen17-Mar-16 10:17
professionalEddy Vluggen17-Mar-16 10:17 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Sascha Lefèvre17-Mar-16 10:18
professionalSascha Lefèvre17-Mar-16 10:18 
GeneralRe: How to decrypt unknown algorithm without a key? Pin
Nathan Minier18-Mar-16 2:24
professionalNathan Minier18-Mar-16 2:24 
AnswerRe: How to decrypt unknown algorithm without a key? Pin
Patrice T18-Mar-16 4:47
mvePatrice T18-Mar-16 4:47 
QuestionHow to use JTree ? Pin
Member 123613951-Mar-16 0:51
Member 123613951-Mar-16 0:51 
AnswerRe: How to use JTree ? Pin
Richard MacCutchan1-Mar-16 1:44
mveRichard MacCutchan1-Mar-16 1:44 
AnswerRe: How to use JTree ? Pin
ZurdoDev1-Mar-16 2:47
professionalZurdoDev1-Mar-16 2:47 
AnswerRe: How to use JTree ? Pin
Patrice T16-Mar-16 14:08
mvePatrice T16-Mar-16 14:08 
QuestionHow to find an efficient algorithm to move in a Blind Maze Pin
amirsharifzadeh29-Feb-16 7:30
amirsharifzadeh29-Feb-16 7:30 
AnswerNo repost Pin
Patrice T29-Feb-16 9:28
mvePatrice T29-Feb-16 9:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.