Click here to Skip to main content
15,920,596 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: New sticky/section idea Pin
Sander Rossel7-Nov-13 20:11
professionalSander Rossel7-Nov-13 20:11 
GeneralRe: New sticky/section idea Pin
Amarnath S7-Nov-13 20:23
professionalAmarnath S7-Nov-13 20:23 
GeneralRe: New sticky/section idea Pin
Stefan_Lang7-Nov-13 21:30
Stefan_Lang7-Nov-13 21:30 
GeneralRe: New sticky/section idea Pin
GuyThiebaut7-Nov-13 21:45
professionalGuyThiebaut7-Nov-13 21:45 
GeneralRe: New sticky/section idea Pin
Mark_Wallace7-Nov-13 22:32
Mark_Wallace7-Nov-13 22:32 
GeneralRe: New sticky/section idea Pin
patbob8-Nov-13 5:51
patbob8-Nov-13 5:51 
GeneralRe: New sticky/section idea Pin
GrantAnderson8-Nov-13 7:49
GrantAnderson8-Nov-13 7:49 
GeneralRe: New sticky/section idea Pin
KP Lee8-Nov-13 17:59
KP Lee8-Nov-13 17:59 
Vmortis wrote:
at the last semester of the curse
You're lucky, I hear women have the curse monthly. Laugh | :laugh:

As you get into interviewing, you'll get plenty of chances of doing challenge coding.

Here's an old stand-by
http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes[^] Of course you won't get near the millions of digits the really serious about it have gotten to. (I can't even think of how you could get a performant routine to accurately get those millions of digits.)

Talk to your teachers, see if they can get an aide to search the web for problem challenges. Our aide came up with a challenge. She found it on the web but wouldn't reveal the source. A fellow student figured our current computers could find an answer in 6 months. On my computer I get an answer in hundredths of a second to 10 minutes. (Multiply by four for the computers we were using then.) The following is solved in 2 minutes:
x  x  x  x  x  x  x
x  29 x  31 x  32 x
x  x  x  x  x  x  x
x  33 x  37 x  29 x
x  x  x  x  x  x  x
x  37 x  30 x  27 x
x  x  x  x  x  x  x
The app finds 17,101 different solutions in those 2 minutes. Basically replace the above "x"s with the numbers 1 through 7. They can't repeat in the same row or column and the 8 "x"s surrounding the numbers have to add up to that number.

In those 2 minutes I am collecting statistics on the process I decided to use to solve the problem.

What kind of process would you use to solve the problem? (Take care, that 6 month estimate is a drop in the bucket compared to having 40 inner loops from 1 to 7. 2 billion loops a second is several times faster than my 2GH device can do and 0 flop to check the solution works out to a quintillion years.)

How would you design the UI?

What capabilities will the UI provide?

Why?

Are there any rules you'll enforce for the UI?

I prefer C#, so you might be able to find a solution that would shame the speed of mine.
Do take the time to consider exactly how you would go about solving the problem with performance being a consideration.

Could you design a web version of it? I came up with one but checked it out just enough to verify I don't want to put up the resources needed to solve it and I didn't even try to see how performant it could be. (Just enough to come up with "not much" as an answer.)
GeneralI can't believe someone hasn't already posted this important Bacon news Pin
Steve Wellens7-Nov-13 15:10
Steve Wellens7-Nov-13 15:10 
GeneralRe: I can't believe someone hasn't already posted this important Bacon news Pin
Super Lloyd7-Nov-13 17:01
Super Lloyd7-Nov-13 17:01 
GeneralRe: I can't believe someone hasn't already posted this important Bacon news Pin
Rajesh R Subramanian7-Nov-13 18:38
professionalRajesh R Subramanian7-Nov-13 18:38 
GeneralRe: I can't believe someone hasn't already posted this important Bacon news Pin
CDP18027-Nov-13 19:14
CDP18027-Nov-13 19:14 
GeneralRe: I can't believe someone hasn't already posted this important Bacon news Pin
glennPattonWork37-Nov-13 22:14
professionalglennPattonWork37-Nov-13 22:14 
GeneralRe: I can't believe someone hasn't already posted this important Bacon news Pin
KP Lee8-Nov-13 18:21
KP Lee8-Nov-13 18:21 
GeneralRe: I can't believe someone hasn't already posted this important Bacon news Pin
dandy728-Nov-13 3:21
dandy728-Nov-13 3:21 
GeneralExhibit A Pin
Christian Graus7-Nov-13 13:09
protectorChristian Graus7-Nov-13 13:09 
GeneralRe: Exhibit A Pin
Mike Hankey7-Nov-13 13:44
mveMike Hankey7-Nov-13 13:44 
GeneralRe: Exhibit A Pin
Christian Graus7-Nov-13 13:45
protectorChristian Graus7-Nov-13 13:45 
GeneralRe: Exhibit A Pin
Dirk Higbee7-Nov-13 14:01
Dirk Higbee7-Nov-13 14:01 
GeneralRe: Exhibit A Pin
bryce7-Nov-13 14:28
bryce7-Nov-13 14:28 
GeneralRe: Exhibit A Pin
Christian Graus7-Nov-13 14:31
protectorChristian Graus7-Nov-13 14:31 
GeneralRe: Exhibit A Pin
bryce7-Nov-13 14:38
bryce7-Nov-13 14:38 
GeneralRe: Exhibit A Pin
Christian Graus7-Nov-13 14:39
protectorChristian Graus7-Nov-13 14:39 
GeneralRe: Exhibit A Pin
Zoidberg Why Not7-Nov-13 16:53
professionalZoidberg Why Not7-Nov-13 16:53 
GeneralRe: Exhibit A Pin
Super Lloyd7-Nov-13 17:05
Super Lloyd7-Nov-13 17:05 

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.