|
Hi all. Started the 100 days yesterday. Here's my fizz buzz solution for checkpoint 3.
|
|
Does posting solutions to checkpoints qualify as knowledge sharing? That was the intention for this post, apart from being the first post to say "hi" to the community. Anyways, posting in a comment my solution for checkpoint 4.
|
|
And checkpoint 5
|
|
Just a little note on the FizzBuzz the switch statement does not need the You also might want to look at naming
Also the real challenge is that also print Fizz if it has a Five in the number and Buzz if has 3 in the number eg 13 would also be Buzz and 50 would be Fizz, 53 would be FizzBuzz Just a side question I thought FizzBuzz was 5(Fizz) and 7(Buzz) to make FizzBuzz. With 3(Buzz) and 5(Fizz) it would be BuzzFizz!!! |
|
Indeed the default was not needed in this case. Maybe the challenge was updated over time? I see 3x are for Fizz and 5x for Buzz. Thanks for the feedback! |
|
Solution to Checkpoint 6 in Day 11. Gear 0 is parking.
|
|
Solution to Checkpoint 7 in Day 12.
|
|
Solution for Checkpoint 8 of Day 13. I should have played more with House and Office, and add some properties and methods. Without doing that, the two structs are too similar and it feels like there's no point in creating different structures.
|
|
Day 14. Checkpoint 9 solution.
|
SPONSORED Transform your career with the iOS Lead Essentials. This Black Friday, unlock over 40 hours of expert training, mentorship, and community support to secure your place among the best devs. Click for early access to this limited offer and a free crash course.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.