Leetcode #7 - Reverse Integer | Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

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

  • @aizazahammad2593
    @aizazahammad2593 4 ปีที่แล้ว +5

    for checking range we can do : if abs(x)> (2**31)-1

  • @bhoamikhona2480
    @bhoamikhona2480 2 ปีที่แล้ว +2

    Very Well Explained! Thank you! :)

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

    Thank you for the Explanation:)

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

    Very nice explanation

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

    clear explanation 👍🏼

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

    best explanation

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

    sign variable is useless if u doing num=num*-1, if sign is there use num=num*sign

    • @Adi-vz9to
      @Adi-vz9to 3 ปีที่แล้ว

      Can you explain

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

    Can't you reverse it it [::-1]while treating converting integer into string

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

      It think that will be a easier solution

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

    I tried this solution since it was how I knew how to reverse integer, but leetcode kept telling me it exceeds the time limot. Any help 😭?

  • @mundrasaikiran3696
    @mundrasaikiran3696 2 ปีที่แล้ว

    How to write using regular expression

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

    thank you so much, it helped.

  • @srinivasareddy4292
    @srinivasareddy4292 3 ปีที่แล้ว

    Thanks

  • @areukiddinme8438
    @areukiddinme8438 3 ปีที่แล้ว

    Heelllooooo 😂

  • @dilipkumar-qw5sm
    @dilipkumar-qw5sm 2 ปีที่แล้ว

    madam your voice is like pooja hegde