I am a Software Engineer and Developer Advocate who loves sharing knowledge via writing, videos, mentorship, and working out. Please Subscribe: https://www.youtube.com/channel/UCcz5Bvr4kGHPFAjvnRhIQ4g
I'm Kay, a cloud consultant focusing on cloud migration to Google Cloud. Passionate about simplifying Cloud Confusion, I've made it my mission to help young professionals enter the cloud world.
Location
Berlin
Education
Bachelor of Science - Business Information Systems
Work
Consultant - Cloud Transformation and Systems Engineering
Yeah. You either have to add the min value or subtract minManipulation(array[0]-1) because otherwise it will exclude the lower boundary. So I corrected the formula to reflect this change (just in case anybody is interested in this).
I am a Software Engineer and Developer Advocate who loves sharing knowledge via writing, videos, mentorship, and working out. Please Subscribe: https://www.youtube.com/channel/UCcz5Bvr4kGHPFAjvnRhIQ4g
Kay, thank you for your suggestion. This is how I did it with
javascript
:So, I had to add the lower boundary (min value) to the final answer to make it work properly.
Yeah. You either have to add the
min
value or subtractminManipulation(array[0]-1)
because otherwise it will exclude the lower boundary. So I corrected the formula to reflect this change (just in case anybody is interested in this).Looking Good 💪