HackerRank Java - Java Output Formatting Solution Explained

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


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

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

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

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

Thanks bro! I totally forgot about the newline being required in printf

gsabella
Автор

My dumb ass even made it's own function that decides how many spaces will be used by doing some basic math like n = number of chars in s1, then doing it like int spaceNeeded = 15 - n HAHAHAHAHAHHA.
I had no idea we're gonna use printf I didn't noticed the f in it HAHAHAHAAHA. Thanks for the help :D

copylyndon
Автор

d is integer because it means decimal

NUKERADE
Автор

why isnt zero padding up with 100?...is dat function defined like that?

robinsonmanuel
Автор

i dont know why but padding with -15 don't work but padding -14 works just fine, thnks anyway

ZGUEL
Автор

how can i talk to you on instagram, your insta page may be removed or the link is broken !

sakshamjain
Автор

THANKS NICK! THATS A GOOD NAME N.I.C.K !

stepbystepcoding
visit shbcf.ru