Giter Club home page Giter Club logo

Comments (4)

ryanplusplus avatar ryanplusplus commented on June 23, 2024 1

The description and test cases come from the upstream problem specifications repo. I agree that removing -lm is a good track-specific reminder that a library function shouldn't be used.

from c.

wolf99 avatar wolf99 commented on June 23, 2024 1

I'm confused:

from the problem specification repository

The description on this track already matches the one in the problem-specifications repository

What is it that should change in this track?

If it is the problem specification that you think should change, then this issue needs to be raised there.

from c.

wolf99 avatar wolf99 commented on June 23, 2024

IIRC the intent of using uint16_t was to restrict the output to natural numbers so as to make the algorithm more simple.

The reasoning being that these are programming exercises rather than math exercises. In most real cases a programmer would simply use the library function.

We wanted something that would exercise the student, but not something that presents too high a barrier of entry.

Removing the -lm from the makefile is a good suggestion!

from c.

Ashvith10 avatar Ashvith10 commented on June 23, 2024

@wolf99 and @ryanplusplus thank you for your response. Since the intent is to keep algorithms more simple, and solutions like brute-force are also equally acceptable, how about adding minor improvements to the description from the problem specification repository? If we let the learners know that the arguments will always be perfect squares, and therefore, they should not have to worry about the answer being non-integer rational numbers, this would lower the cognitive load for most students, who will jump on using complex techniques.

from c.

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.