Giter VIP home page Giter VIP logo

Comments (5)

kytrinyx avatar kytrinyx commented on July 17, 2024

The best READMEs seem to leave a fair amount of ambiguity, allowing different languages to implement different things without being inconsistent with the spec.

Maybe we could change the README to say "brackets and braces", leaving the interpretation more open.

from problem-specifications.

behrtam avatar behrtam commented on July 17, 2024

It was not clear to me that a certain amount of ambiguity is desired. My expectation was that e.g. brackets('{[ ]}') should not raise an exception in one and pass in another track.

The approaches and coding styles are sometimes very different between various languages so maybe it makes sense not to lay everything down to the last detail. Didn't really think about that aspect.

from problem-specifications.

soniakeys avatar soniakeys commented on July 17, 2024

If I understand, one issue is if it's fair for test programs to test three kinds of braces when the readme mentions only two. I suppose someone could write some logic that only worked for two kinds of braces but not be easily adapted to three, then be frustrated to discover they must handle three. I expect that's rare though, and Katrina's suggestion of making the readme a little less specific might help in those cases.

Another issue is differences between the implementation in the Go and Javascript tracks. I think they currently have the same test cases and expect the same results, other than the Go API also having this error return. None of the current test cases are considered errors though, so the interpretation (that non-brace content would be an error) of the Go example program doesn't seem relevant. Solvers in the Go are not compelled to make the same interpretation and in fact are free to return nil (no error) in all cases.

from problem-specifications.

behrtam avatar behrtam commented on July 17, 2024

I was thinking the wrong way. If it would be a normal application I would make sure that the behaviour with other characters than brackets is tested. But here we actually win some freedom by not testing it because every user can decide independently how to handle it.

Nonetheless I like Katrina's suggestion to say "brackets and braces" even though its only a very small change.

from problem-specifications.

kytrinyx avatar kytrinyx commented on July 17, 2024

Thanks for helping clarify.

from problem-specifications.

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.