Comments (4)
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.
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.
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.
@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)
- Add learn track for C HOT 4
- Implement the exercise "high-scores" HOT 9
- Change to "community-contributions-accepted" HOT 2
- Expected and actual assertion arguments reversed in some tests HOT 2
- Docs: test framework overview links to empty article HOT 1
- More documentation to `Grade School` HOT 1
- Add `make memcheck` tip for the HELP.md file. HOT 1
- Building a training set of tags for c HOT 23
- Rework the gigasecond exercise? HOT 3
- Problems in pascals-triangle test HOT 12
- The order of the results actually matters for the Word Count exercise HOT 4
- Pascal's Triangle has a bad Test Case defining Zero Rows. HOT 2
- Exercises for #48in24 HOT 17
- pig latin in C track HOT 2
- Grade school : ARM64 - Some tests fail when run online HOT 5
- Return type for `convert(char result[], int drops)` in "Raindrop" should be of type `void` HOT 2
- Approach is missing in "Hamming" HOT 5
- Jumped right from Hello World to Armstrong Numbers? HOT 5
- Use of macros in "Series" isn't clear, consideration for removal? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c.