Oct-10-2020, 08:21 PM
you can publish minimal reproducible example here, with the input, expected and real output. I am not sure I understand what 4th example is and how the output will be 0
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs