#36 - Reverse a Number In Javascript

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • In this video, I have covered how to Reverse a Number In Javascript.
    Schedule a meeting in case of any queries/guidance/counselling:
    calendly.com/n...
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/...
    Naveen AutomationLabs Paid Courses:
    GIT Hub Course:
    naveenautomati...
    Java & Selenium:
    naveenautomati...
    Java & API +POSTMAN + RestAssured + HttpClient:
    naveenautomati...

ความคิดเห็น • 8

  • @majidwaseem8684
    @majidwaseem8684 7 หลายเดือนก่อน +1

    Thanks a lot for this😊I was looking for someone who could explain me in this simplest way....

  • @begooddogood9898
    @begooddogood9898 ปีที่แล้ว +1

    Hi
    I think this code if we run we will get time limit exceeded in leetcode so that means we need to optimise the solution

  • @devkinandansingh326
    @devkinandansingh326 ปีที่แล้ว +1

    sir why are we useing return at last pls explain this?

  • @OutlandishSamurai
    @OutlandishSamurai ปีที่แล้ว +1

    What is the time complexity of this solution?

    • @naveenautomationlabs
      @naveenautomationlabs  ปีที่แล้ว

      O(n), where n is the number of digits in the input number and O(1) in case of number is between 0 to 9.

  • @AyushRaj-ju4gb
    @AyushRaj-ju4gb ปีที่แล้ว +1

    AI chatbot just wanted to write some code anyhow

  • @HAbarneyWK
    @HAbarneyWK ปีที่แล้ว +3

    My lazy *ss would've gone down the string route 😅
    parseInt(num.toString().split("").reverse().join(""));