Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Classes are just syntactic sugar meant to encapsulate code and abstract(hiding unnecessary details) code. The code would still work in this case without classes and by simply just writing the function
Study math
Yes Of Course it can simply work without classes. Just write the function outside of the class code block literal and invoke the function like this: findSmallestInt([23, 45, 67])
Very hard for beginner!
Not intuitive for me but glad to know it exists.
Helpful. Thank you!
Someone told me to go back to school to study math; it will help my programming. I see the point.
So you can tell the program when you want to exit the function and get the value you're looking for.
This comment is hidden because it contains spoiler information about the solution
Beginner here. Could someone explain why the return key word is being used here? Thanks.
Good to know there is a built-in fcn for checking for integers.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I would rename p as "total" and n as "current" or something like that for readability.
This comment is hidden because it contains spoiler information about the solution
Loading more items...