Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
I don't undertand how 7 is being made in the example.
7==23+11
2 and 3 are b and d, hence seems like does not fit the description that e and f must result only from sums (or differences) of products between on the one hand (a, b) and on the other (c, d) each of a, b, c, d taken only once.
I agree.
Here's a link I found useful-
https://brilliant.org/wiki/integral-approximation-simpsons-rule/#
I am unsure whether this is an issue or a question but for some reason my racket code is not doing the math correctly.
For example, (((1+sqrt(5))/2)^73)/(sqrt(5) equals 806,515,533,049,393 but my code gets the math wrong by one digit. I am so confused because the math is correct and this is the simplest formula I know got fibbonacci numbers. I don't understand why it is getting the math wrong because the formula is not that computationaly intensive.
Btw, this problem is also the same in Dr. Racket on my computer. But it is a language problem for sure because the math I am using is a 100% correct.
My code keeps timing out in Racket even though it finishes in dr. racket immediately.
I believe there is some sort of glitch since for some reason this cannot handle the situation where x equals 0. No matter how I try to include the code always times out. I even directed included a cond statement stating that whenever m is 1, x should be 0. I cannot recreate this issue in Dr. Racket.
the example code is very good and only reason I could solve the question.
old price matters since the oldcar gets sold when the new car is bought. So the value of the oldcar is also important in the context of this question.
I was struggling cuz I named my function tankvol lol. That one hyphen wasted so much time it isnt even funny.
I am using Racket and getting error- Expected #f, but instead got #f.
nice kata.
Keep forgetting to add that 0! is 1
you comment saved me since I was trying to calculate the average hourly speed instead of the maximum spped.
Thank you. I am new hence did not understand the difference between exact and inexact.
How do output my answer in the form (list m . n) in racket.
I can output (list m n) but that doesn't seem to work
My code in Racket shows error but the answer is the same except actual has a ".0" at the end of the answer. There are the same number and hence should be accepted.
expected: 58430
actual: 58430.0
i don't think the stipulation what n has to be greater than 2 is necessary. It makes the whole thing kinda pointless.
I feel like having n be equal to 1 and 2 would make the problem slightly challenging and enjoyable.
Loading more items...