Try improving the algorithm to calculate the difference so it is written in less lines of code.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5993-your-first-ios-app/lessons/23
Try improving the algorithm to calculate the difference so it is written in less lines of code.
Hi Ray! Thank you very much for the course. It is very very informative and clear.
I found another solution for the challenge
> difference = abs(currentValue - targetValue)
, I checked, it works. Just wondering if this solution ok or nok.
Never mind
@a030507 Glad you sorted it out. Cheers! :]