square-root: add exercise#408
Conversation
| bit >>= 2; | ||
| } | ||
| return result; | ||
| } |
There was a problem hiding this comment.
Is there a writeup on this algorithm available somewhere? I'm curious and would like to know more.
There was a problem hiding this comment.
Check the Wikipedia link from the proposed readme: exercism/problem-specifications#1582 (comment)
|
Seems the So the question is do we want to add this exercise if so doing diverges from the existing specifications? I don't mind overly if the exercise is put in WIP until whenever it can be added to the specifications (this is what has been done on the specification PR). |
|
@wolf99 I haven't been following the discussion upstream and didn't realize they were no longer accepting new exercises. Is there any indication of how long that might last? |
|
@ryanplusplus Nope. Have asked on the related issue on the repo (exercism/problem-specifications#1560 (comment)) However, I note a recent exercism blog post by Jeremey Walker mentions a program for structuring project anatomy is intended to cover a period of 12 months (https://exercism.io/blog/redesigning-tracks-in-partnership-with-chicago-university-and-sloan-foundation). |
|
@wolf99 okay, sounds like we'll be stuck in a holding pattern for a long time if we don't move forward on the C track. Will this actually show up properly in the web UI if we don't have the upstream stuff taken care of? That's the only lingering concern I have. |
|
@ryanplusplus I think it should yes. Not sure how the exercise icon will work though. For final confirmation I think just try it and see really 🤷♂ . I will have to add a custom |
|
Hi there! You may add track specific exercises WITHOUT having the problem spec one merged. There are no technical limitations here. Make sure there is a uuid and that the slug is unique. Request an icon. The usual. |
|
I've added the exercise README and the icon is live exercism/website-icons#34. I think this is ready for final review/merge |
|
Sorry @wolf99 for not getting to this sooner |
Adds a new exercise to calculate the square root of a natural radicand.
Because the tests use only natural numbers up to 255, the exercise can be implemented via a simplified algorithm that uses bit shifting.
Will add readme after exercise addition PR is merged in problem specifications.