HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Reverse an Integer - Java Interview Question -3

125,738 views November 8, 2018 11:35

Watch on YouTube
ChannelNaveen AutomationLabs

Description from the creator

How to Reverse an Integer :

Java reverse an int value - Pseudocode:

Let's say number = 12345
a. Extract the rightmost digit of your input number. (12345 % 10) = 5

b. Take that digit (5) and add it into a new reversedNum.

c. Multiply reversedNum by 10 (5 * 10) = 50, this exposes a zero to the right of your (5).

d. Divide the input by 10, (removing the rightmost digit). (12345 / 10) = 1234

e. Repeat at step a with 1234

===================================================
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
youtube.com/c/Naveen%20AutomationLabs?sub_confi…

Follow me on my Facebook Page:
facebook.com/groups/naveenqtpexpert/

Let's join our Automation community for some amazing knowledge sharing and group discussion:
t.me/joinchat/COJqZQ4enmEt4JACKLNLUg

-~-~~-~~~-~~-~-
Follow my Site/Blog: naveenautomationlabs.com
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
youtube.com/watch?v=Og-9P5RwCMM
-~-~~-~~~-~~-~- Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
youtube.com/c/Naveen%20AutomationLabs?sub_confi…

Follow me on my Facebook Page:
facebook.com/groups/naveenqtpexpert/

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/COJqZUPB02r5sB73YMdXEw

Paid courses (Recorded) videos:
Java & Selenium Course: naveenautomationlabs.com/p/course-content-selen…
API Course: naveenautomationlabs.com/p/syllabus-course-cont… ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: naveenautomationlabs.com/p/course-content-selen…
API Course: naveenautomationlabs.com/p/syllabus-course-cont…
-------------------------------

✔️SOCIAL NETWORKS
Facebook: facebook.com/groups/naveenqtpexpert/
Twitter: twitter.com/naveenkhunteta
Blog: naveenautomationlabs.com
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: [email protected]
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: naveenautomationlabs.com/p/course-content-selen…
API Course: naveenautomationlabs.com/p/syllabus-course-cont…
-------------------------------

✔️SOCIAL NETWORKS
Facebook: facebook.com/groups/naveenqtpexpert/
Twitter: twitter.com/naveenkhunteta
Blog: naveenautomationlabs.com
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/naveenkhunteta
Google Pay: [email protected]
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

About this tutorial

Naveen AutomationLabs published this 11:35 video tutorial on November 8, 2018. It has been watched 125,738 times on YouTube.

Duration
11:35
Published
November 8, 2018
Views
125,738
Likes
1,413

Tags

Share

This tutorial in other languages