Click here to Skip to main content
15,173,665 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: 25 years of programming reduced to a question. Pin
jsc4223-Sep-20 11:51
professionaljsc4223-Sep-20 11:51 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 11:56
professionalJeremy Falcon23-Sep-20 11:56 
GeneralRe: 25 years of programming reduced to a question. Pin
Marc Clifton23-Sep-20 5:41
mvaMarc Clifton23-Sep-20 5:41 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 5:45
professionalJeremy Falcon23-Sep-20 5:45 
GeneralRe: 25 years of programming reduced to a question. Pin
Peter ls-l23-Sep-20 5:53
MemberPeter ls-l23-Sep-20 5:53 
GeneralRe: 25 years of programming reduced to a question. Pin
musefan23-Sep-20 6:49
Membermusefan23-Sep-20 6:49 
GeneralRe: 25 years of programming reduced to a question. Pin
Peter ls-l23-Sep-20 6:11
MemberPeter ls-l23-Sep-20 6:11 
GeneralRe: 25 years of programming reduced to a question. Pin
Fueled By Decaff23-Sep-20 6:20
MemberFueled By Decaff23-Sep-20 6:20 
It is annoying when faced with something like this, but it is surprisingly common. In my opinion a programming test should be short, simple and should only be possible to be failed by someone who can not program - ideally you should be able to use it as a springboard for discussing programming techniques.

A lot of people are not good at on the spot tests like this, so this type of interview gets a lot of false negatives.

I guess Acelook can pass over good candidates, because they have a lot of candidates to choose from. Perhaps they use custom algorithms and need every programmer to be able to create them.

One slight point though - your single loop solution will typically be slightly less efficient then the two loop solution, although it does seem clearer what your solution is doing.


Addendum: So when does OG start at Acelook? Laugh | :laugh:
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 7:16
professionalJeremy Falcon23-Sep-20 7:16 
GeneralRe: 25 years of programming reduced to a question. Pin
David O'Neil23-Sep-20 11:32
professionalDavid O'Neil23-Sep-20 11:32 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 11:48
professionalJeremy Falcon23-Sep-20 11:48 
GeneralRe: 25 years of programming reduced to a question. Pin
honey the codewitch23-Sep-20 7:39
mvahoney the codewitch23-Sep-20 7:39 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon23-Sep-20 11:54
professionalJeremy Falcon23-Sep-20 11:54 
GeneralRe: 25 years of programming reduced to a question. Pin
harold aptroot23-Sep-20 10:23
Memberharold aptroot23-Sep-20 10:23 
GeneralRe: 25 years of programming reduced to a question. Pin
Super Lloyd23-Sep-20 19:08
MemberSuper Lloyd23-Sep-20 19:08 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 2:24
professionalJeremy Falcon24-Sep-20 2:24 
GeneralRe: 25 years of programming reduced to a question. Pin
V.23-Sep-20 21:17
professionalV.23-Sep-20 21:17 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 2:25
professionalJeremy Falcon24-Sep-20 2:25 
GeneralRe: 25 years of programming reduced to a question. Pin
Member 1417446023-Sep-20 23:28
professionalMember 1417446023-Sep-20 23:28 
GeneralRe: 25 years of programming reduced to a question. Pin
Sander Rossel24-Sep-20 0:22
professionalSander Rossel24-Sep-20 0:22 
GeneralRe: 25 years of programming reduced to a question. Pin
megaadam24-Sep-20 0:56
professionalmegaadam24-Sep-20 0:56 
GeneralRe: 25 years of programming reduced to a question. Pin
Sander Rossel24-Sep-20 3:23
professionalSander Rossel24-Sep-20 3:23 
GeneralRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 2:27
professionalJeremy Falcon24-Sep-20 2:27 
QuestionRe: 25 years of programming reduced to a question. Pin
megaadam24-Sep-20 0:52
professionalmegaadam24-Sep-20 0:52 
AnswerRe: 25 years of programming reduced to a question. Pin
Jeremy Falcon24-Sep-20 2:39
professionalJeremy Falcon24-Sep-20 2:39 

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.