Click here to Skip to main content
15,909,242 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: Interview Brain Teasers Pin
Richard Andrew x6430-Mar-15 13:22
professionalRichard Andrew x6430-Mar-15 13:22 
GeneralRe: Interview Brain Teasers Pin
Brady Kelly30-Mar-15 20:37
Brady Kelly30-Mar-15 20:37 
GeneralRe: Interview Brain Teasers Pin
Mark_Wallace30-Mar-15 21:08
Mark_Wallace30-Mar-15 21:08 
GeneralRe: Interview Brain Teasers Pin
Brady Kelly30-Mar-15 21:10
Brady Kelly30-Mar-15 21:10 
GeneralRe: Interview Brain Teasers Pin
PIEBALDconsult30-Mar-15 14:34
mvePIEBALDconsult30-Mar-15 14:34 
GeneralRe: Interview Brain Teasers Pin
Paul M Watt30-Mar-15 15:36
mentorPaul M Watt30-Mar-15 15:36 
GeneralRe: Interview Brain Teasers Pin
den2k8830-Mar-15 21:01
professionalden2k8830-Mar-15 21:01 
GeneralRe: Interview Brain Teasers Pin
Amarnath S30-Mar-15 17:43
professionalAmarnath S30-Mar-15 17:43 
1. There is a black bag containing socks of two colours - blue and brown. You are allowed to put your hand inside the bag and remove 'N' number of socks (you can't see which colour till you've pulled it out). What should the minimum 'N' be such that you get two socks of the same colour?

Initially appeared like a probability problem, and I was afraid of probability at that time. Then, after two minute's thinking got it right.

2. Program to shuffle a pack of 52 cards, and "deal" three cards to a player.

Had to think of how to represent cards as a variable, then how to shuffle them, and pull out three. Gave the logic, but implementation in a language needed a search engine.

3. Program to display a scrolling marquee message on the screen "Your Name".

This involved a good understanding of the DrawText function, along with a timer. One tricky thing was how to make it come back on the right, as it starts disappearing on the left - does it need two instances of DrawText; not sure whether I answered it right.
GeneralRe: Interview Brain Teasers Pin
_Maxxx_30-Mar-15 18:35
professional_Maxxx_30-Mar-15 18:35 
GeneralRe: Interview Brain Teasers Pin
Amarnath S30-Mar-15 18:45
professionalAmarnath S30-Mar-15 18:45 
GeneralRe: Interview Brain Teasers Pin
Brady Kelly30-Mar-15 20:29
Brady Kelly30-Mar-15 20:29 
GeneralRe: Interview Brain Teasers Pin
Kirk 1038982131-Mar-15 3:43
Kirk 1038982131-Mar-15 3:43 
GeneralRe: Interview Brain Teasers Pin
Brady Kelly31-Mar-15 3:47
Brady Kelly31-Mar-15 3:47 
GeneralRe: Interview Brain Teasers Pin
Kirk 1038982131-Mar-15 3:55
Kirk 1038982131-Mar-15 3:55 
GeneralRe: Interview Brain Teasers Pin
PIEBALDconsult31-Mar-15 7:26
mvePIEBALDconsult31-Mar-15 7:26 
GeneralRe: Interview Brain Teasers Pin
Kirk 1038982131-Mar-15 10:41
Kirk 1038982131-Mar-15 10:41 
GeneralRe: Interview Brain Teasers Pin
PIEBALDconsult31-Mar-15 10:45
mvePIEBALDconsult31-Mar-15 10:45 
GeneralRe: Interview Brain Teasers Pin
super30-Mar-15 21:50
professionalsuper30-Mar-15 21:50 
GeneralRe: Interview Brain Teasers Pin
Kevin Marois31-Mar-15 1:47
professionalKevin Marois31-Mar-15 1:47 
GeneralRe: Interview Brain Teasers Pin
super31-Mar-15 1:54
professionalsuper31-Mar-15 1:54 
NewsWe have Markdown PinPopular
Chris Maunder30-Mar-15 10:05
cofounderChris Maunder30-Mar-15 10:05 
GeneralRe: We have Markdown Pin
Brisingr Aerowing30-Mar-15 10:27
professionalBrisingr Aerowing30-Mar-15 10:27 
GeneralRe: We have Markdown Pin
Sascha Lefèvre30-Mar-15 10:32
professionalSascha Lefèvre30-Mar-15 10:32 
GeneralRe: We have Markdown Pin
Chris Maunder30-Mar-15 10:50
cofounderChris Maunder30-Mar-15 10:50 
GeneralRe: We have Markdown Pin
Sascha Lefèvre30-Mar-15 11:07
professionalSascha Lefèvre30-Mar-15 11:07 

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.