• ###### Drakonus_commented on "Find the smallest integer in the array" kata

Ughhh, damn, I can't believe I missed something as simple as that. This is definitely a brain fart moment.

• ###### rowcasedcommented on "Find the smallest integer in the array" kata

Just speak it out:

``````if(smol > vec[i]){
smol = vec[i];
}
``````

"If smol is larger than the value in question, reassign smol as this smaller value"

• ###### Drakonus_commented on "Find the smallest integer in the array" kata

Duh, isn't that obvious? I'm asking about the logic of how and why it works.

• ###### Zoola007commented on "Find the smallest integer in the array" kata

because operation in if- statment.

• ###### Drakonus_created a question for "Find the smallest integer in the array" kata

This comment is hidden because it contains spoiler information about the solution

• ###### Zoola007commented on "Find the smallest integer in the array" kata

This comment is hidden because it contains spoiler information about the solution

ok, sry

• ###### akar-0resolved an issue on "Find the smallest integer in the array" kata

Hi. Please use a spoiler flag when you post code (I put the flag for you this time). And don't raise an issue, an issue is a flaw inside a kata, you'd rather ask a question in this case. Also please use markdown to format your code or it's very discomfortable to read. You can find more details about all that and help to debug your solution there: https://docs.codewars.com/training/troubleshooting/

• ###### OleksHaidcreated an issue for "Find the smallest integer in the array" kata

This comment is hidden because it contains spoiler information about the solution

• ###### hobovskycommented on "Find the smallest integer in the array" kata

But out of all these numbers, no matter how large, one is the smallest, isn't it?

• ###### user5353061commented on "Find the smallest integer in the array" kata

Random test are very stupid for C. Question said that i need to find the smallest number in int array, but random tests give big numbers for int type.

• ###### Chrono79resolved an issue on "Find the smallest integer in the array" kata

Read this: https://docs.codewars.com/training/troubleshooting#expected-the-same and please mark your post as having spoiler content next time. Not a kata issue.

• ###### Rustcrayfish767created an issue for "Find the smallest integer in the array" kata

This comment is hidden because it contains spoiler information about the solution