-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement exercises #7
Comments
I'd like to do |
I'll start easy and try |
That's actually not that easy, but there is a video to help out: https://www.youtube.com/watch?v=H7GJbSHgWjw&ab_channel=TacitSanctuary |
Apparently. From the comment:
Always great when kagi gives no real results, but once I clicked
So first give me an array that is the remainder of input / value:
For each item, does it compare to 0 (aka is it divisible?)
But with reduce, the function
You can compare the answers (steps) here with the previous
In the 2100 case, what happens is:
The 2024 case:
It works because for each division the result ( I can now rest in peace(s) |
I think we found our first deep -dive 🎉🥳 |
Here are three more options: The sum of "which are divisible" must be an odd numberI think, if my thought process is right, then the following is equivalent
If each divisible item is counted as a 1 and each item that yields a remainder is 0, then the sum of all the Filter array for
|
Fantastic writeup! I'm happy for you to join in adding some exercises :) (if you'd like and have time) |
Ok. One more and then I need to go do something else. This is way too interesting. Here is big brain mode:
And yes If we need to turn this into a function, a bit of reshuffling is necessary. Reordering the stackOkay, the input is not at the end, so it cannot be "inserted" from the top, yay. But that can be fixed using:
The date we want looks like
|
I'll do |
@vaeng let me know when you have something. I'm happy to write all of the above as approaches. |
It's my first dive into an array language, and this is what I came up with in #9, after I understood that I had an array in an array and thus needed deshaping. Fixed that, thank you |
#7 (comment) still my best one though. I'll start writing deep dive docs |
I'll do |
@vaeng I've done some course regex replaces on the 8th track's exercise (which is a stack-based language) to create Uiua test files. They'll not be perfect, but they are a good starting point. You can find the branch here: https://github.com/exercism/8th/tree/uiua |
I'll do |
That will speed things up, thanks! |
I'll take |
I'll work on |
I'll try acronym. Let's see some string magic. |
Acronym was okay, let's see how Bob goes. |
Let me start with something simple like |
Done, however I was too hasty in declare "resistor color" as simple. |
I am halfway done writing the approaches. Maybe I'll do an exercise then. In the meanwhile one of my colleagues solved leap... interestingly |
I've done the first 3 exercises of the |
Neither are mine. That's totally fine! Thanks for the PRs. |
That's definitely worthy of an approach! 😮 |
I'll do |
Whilst reading the docs, I came across the fact that you can document a function's parameters via comments: https://www.uiua.org/tutorial/documentation I'm not sure about giving the return value a name 🤷 |
The built-in function's tooltips give something like |
I'll do gigasecond |
I'll do |
And |
I'll do hexadecimal next, if it weren't deprecated. isbn-verifier it is. |
I'll do |
I'll do |
21 exercises in two days. What an exciting language! |
I'm so loving it! |
Finished the |
Done. |
I'll do |
I'll take |
Imma do |
|
I'll do |
It's this one |
Superficially it looks like resistor-color-trio but with one added suffix. If so, I don't think it's that interesting but 🤷 |
Yeah, |
I'll take |
And |
Imma take a crack at |
Added |
I'll do |
And |
Added |
Added |
I'll do |
I'll tackle the song exercises: |
Let's use this issue to claim exercises we want to add.
acronym
- vaengarmstrong-numbers
- ErikSchierboombob
- vaengcollatz-conjecture
- ErikSchierboomdarts
- ErikSchierboomdifference-of-squares
- ErikSchierboomeliuds-eggs
- ErikSchierboomgigasecond
- vaenggrains
- ErikShierboomhamming
- ErikSchierboomisbn-verifier
- vaengisogram
- ErikSchierboomlargest-series-product
- ErikSchierboomleap
- vaengpangram
- ErikSchierboomraindrops
- ErikSchierboomresistor-color
- glaxxieresistor-color-duo
- glaxxieresistor-color-trio
- glaxxiereverse-string
- ErikSchierboomrna-transcription
- ErikSchierboomrotational-cipher
- glaxxieseries
- ErikSchierboomsquare-root
- ErikSchierboomsum-of-multiples
- ErikSchierboomtwo-fer
- vaengThe text was updated successfully, but these errors were encountered: