Click here to Skip to main content
15,889,339 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd20-Jul-09 13:05
Super Lloyd20-Jul-09 13:05 
GeneralRe: Sith Interviewing Tactics Pin
Daniel Grunwald20-Jul-09 23:25
Daniel Grunwald20-Jul-09 23:25 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd20-Jul-09 23:44
Super Lloyd20-Jul-09 23:44 
GeneralRe: Sith Interviewing Tactics Pin
Super Lloyd21-Jul-09 0:01
Super Lloyd21-Jul-09 0:01 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes21-Jul-09 8:26
ProtoBytes21-Jul-09 8:26 
GeneralRe: Sith Interviewing Tactics Pin
supercat96-Jul-09 6:58
supercat96-Jul-09 6:58 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes6-Jul-09 7:20
ProtoBytes6-Jul-09 7:20 
GeneralRe: Sith Interviewing Tactics Pin
Distind6-Jul-09 6:44
Distind6-Jul-09 6:44 
If you want a terrifying interview question try this beast on for size


From the command line take in two numeric strings, determine how you would have to create an equation out of the numbers given in the first string to result in the second or display that it is impossible.

Sample input: 12 3
1+2 = 3

34 12
3*4 = 12

Only, there was one of these samples roughly 20 characters long. You either had the four typical operators or perhaps just addition and multiplication to cover.

Do this in C, with no libraries, in under 6 hours, time also split doing a sodoku solver(which is a pain for those of us who'd never done one of the puzzles before, did it in two hours including learning the game).

That said, if this is some how as easy as a Fibonacci sequence I would love to be proven an idiot, this thing has been bugging me for a while now. And I may have finally figured the thing out writing this, I'll have to see if my idea works once I'm out of work.
GeneralRe: Sith Interviewing Tactics [modified] Pin
ProtoBytes6-Jul-09 7:26
ProtoBytes6-Jul-09 7:26 
GeneralRe: Sith Interviewing Tactics Pin
Ian_Sharpe6-Jul-09 10:26
Ian_Sharpe6-Jul-09 10:26 
GeneralRe: Sith Interviewing Tactics Pin
Viral Upadhyay8-Jul-09 4:34
Viral Upadhyay8-Jul-09 4:34 
GeneralRe: Sith Interviewing Tactics Pin
Vozzie27-Jul-09 4:13
Vozzie27-Jul-09 4:13 
GeneralRe: Sith Interviewing Tactics [modified] Pin
ProtoBytes7-Jul-09 14:36
ProtoBytes7-Jul-09 14:36 
GeneralRe: Sith Interviewing Tactics Pin
S. Senthil Kumar11-Jul-09 22:01
S. Senthil Kumar11-Jul-09 22:01 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes12-Jul-09 2:16
ProtoBytes12-Jul-09 2:16 
GeneralRe: Sith Interviewing Tactics [modified] Pin
ProtoBytes7-Jul-09 15:04
ProtoBytes7-Jul-09 15:04 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes7-Jul-09 15:31
ProtoBytes7-Jul-09 15:31 
GeneralRe: Sith Interviewing Tactics Pin
Vozzie28-Jul-09 0:45
Vozzie28-Jul-09 0:45 
GeneralRe: Sith Interviewing Tactics Pin
Chris Losinger14-Jul-09 12:38
professionalChris Losinger14-Jul-09 12:38 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes14-Jul-09 15:48
ProtoBytes14-Jul-09 15:48 
AnswerRe: Sith Interviewing Tactics [modified] Pin
ProtoBytes15-Jul-09 2:15
ProtoBytes15-Jul-09 2:15 
GeneralRe: Sith Interviewing Tactics Pin
Chris Losinger15-Jul-09 3:08
professionalChris Losinger15-Jul-09 3:08 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes15-Jul-09 3:42
ProtoBytes15-Jul-09 3:42 
GeneralRe: Sith Interviewing Tactics Pin
Chris Losinger15-Jul-09 3:57
professionalChris Losinger15-Jul-09 3:57 
GeneralRe: Sith Interviewing Tactics Pin
ProtoBytes15-Jul-09 4:10
ProtoBytes15-Jul-09 4:10 

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.