Forum Overview :: Still Life
 
Re: A poll for programmers by E. L. Koba 05/04/2018, 5:50pm PDT
Rafiki wrote:

Suppose as part of the interview process you’re given a programming assignment to see how well you write code. Suppose you’re tasked with writing a custom string class and you’re asked to implement a few methods: indexof, containscharacter, insert. Suppose you’re also explicitly told that you’re not allowed to use the native string type as your internal storage, which would naturally lead to using a char[].

Is it reasonable to assume you’re expected to implement those methods working against your character array, or am I wrong for thinking you’re retarded if you just do return(charArray.ToString().indexof(charToFind))?

Additional info: you’re given several days to complete this.


This seems like a perfectly reasonable way to screen out people who for whom programming is mostly "keep trying different things until there are no more red squiggly lines in intellij"

It's possible that the term "as your internal storage" could be throwing people off though, if that's the exact wording. Maybe re-doing the problem as an array of some arbitrary objects could reduce confusion?
PREVIOUS NEXT REPLY QUOTE
 
Adventures in Hiring by Rafiki 04/24/2018, 8:20pm PDT NEW
    Re: Adventures in Hiring by Fullofkittens 04/25/2018, 7:26am PDT NEW
        Yeah, GPAs and degrees are worthless. Only consider if they have <3 years' xp. NT by The Happiness Engine 04/25/2018, 12:21pm PDT NEW
            This thread is helpful for making the jump from freelance to white collar work. NT by saltlord 04/25/2018, 12:45pm PDT NEW
        Next you’ll tell me I shouldn’t disqualify people that don’t play D&D or L by Rafiki 04/25/2018, 1:49pm PDT NEW
    Ha. So very, very true. Candidates are so bad. by blackwater 04/25/2018, 1:20pm PDT NEW
    A poll for programmers by Rafiki 05/04/2018, 3:15pm PDT NEW
        Re: A poll for programmers by E. L. Koba 05/04/2018, 5:50pm PDT NEW
        They use String after being explicitly told not to. NT by DQ 05/05/2018, 8:40am PDT NEW
            Yeah, tough to defend this one. NT by Ice Cream Jonsey 05/06/2018, 10:19am PDT NEW
        Re: A poll for programmers by Ice Cream Jonsey 05/05/2018, 1:20pm PDT NEW
            Re: A poll for programmers by Rafiki 05/07/2018, 9:05pm PDT NEW
                Re: A poll for programmers by Ice Cream Jonsey 05/08/2018, 5:51am PDT NEW
            "Automator" is a cool-sounding job title NT by blackwater 05/08/2018, 12:06am PDT NEW
    My first cheater! by Rafiki 06/11/2018, 8:32am PDT NEW
 
powered by pointy