Git Product home page Git Product logo

Comments (6)

seanlip avatar seanlip commented on May 5, 2024

Good catch! Including @apicardgoog because he authored the original question; @apicardgoog, do you have any thoughts on how much hinting/description you want to give here?

from tie.

apicardgoog avatar apicardgoog commented on May 5, 2024

I'm open to modifications but I'm not sure what to recommend here. I would like the candidate to think about edge cases on their own. Maybe we could phrase it as "An abbreviation of a word follows the form if it shortens the word"?

from tie.

eyurko avatar eyurko commented on May 5, 2024

I'd contend (and I just said something similar on another issue) that part of the point of these questions is to leave the description somewhat open-ended, as we're trying to mimic an interview setting rather than giving an exact specification of expected inputs and outputs from the get-go. To that end, we shouldn't give too many examples (especially of ones with edge cases). I think the student should be able to glean the intention of the "abbreviate" function from the name of it (since something that is the same length or longer is not abbreviated).

Just my two cents.

from tie.

seanlip avatar seanlip commented on May 5, 2024

I agree that we should not enumerate all edge cases in advance, or specify a full set of inputs and outputs covering all corner cases.

However, I think that the requirements of the problem need to be clear, otherwise the problem is ambiguous and there is no one to ask clarifying questions to (which is the main difficulty here). I don't really think that the name of the function alone is sufficient to deduce the purpose of the function.

I can think of two possibilities (there may be others):

  • Have some sort of way for students to "ask questions". This could be as simple as having a question mark button in the bottom right and allowing them to select, multiple-choice style, clarifying questions from it. That way, although they might not be able to practice coming up with questions on their own, at least they get a feel for what sort of thing to ask.
  • Use a formulation similar to what @apicardgoog suggested -- i.e., describe the problem clearly ("only abbreviate the word if the resulting word is shorter") but leave the student to figure out the implications of this requirement.

Appreciate further thoughts.

from tie.

eyurko avatar eyurko commented on May 5, 2024

I actually really like the idea of the question mark + clarifying questions button if we're trying to encourage good interview behavior. I think we could do both things rather easily, though the nuance around how to do the clarifying questions well would probably warrant a longer discussion. I'd say let's start with Antoine's suggestion and then keep the clarifying questions thing as an option for future development.

from tie.

seanlip avatar seanlip commented on May 5, 2024

Fixed in #114. Thanks, @jianjinjian!

from tie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.