HackerRank Java Java If-Else Solution Explained

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

#coding #programming #softwareengineering
Рекомендации по теме
Комментарии
Автор

Hey idk why all the test cases keep failing. Bt i did wht u did, so it must be like accurate like yours. Please help me

himashanethmini
Автор

My Question would be for the last input. We set the input to only be "greater than 20" but we didn't make it "even" so how is it correct? for instance 21 is greater than 20 but it's not even.

williamlewis
Автор

if n == 0, what is the output according to your code? because I have an error for 0.

enes
Автор

Thanks bro This helped ..Just earned my 1st start for java on Hacker rank

priyanshuranjancoding
Автор

Thnku Nick ur explanation gives idea to think.. Make videos really help beginner like me

mohammadsijauddin
Автор

Why (n % 2 > 0) instead of (n % 2 == 1)? What is the logic behind it? Mod 2 will only give you 0 or 1. Please explain. Thanks!

tonydang
Автор

these videos are a fantastic resource. Thanks for your time!

RyanJones-qohn
Автор

Whats up Nick. I'm new to coding and I'm having trouble with understanding the problem and writing the code.

JB-brnd
Автор

It's not working, I watched all your previous vids as well and the code keeps failing

YVNG_SHAQUAN