Can You Restore IP Addresses? (LeetCode 93: Restore IP Addresses)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

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

  • @ThyMole
    @ThyMole 2 หลายเดือนก่อน

    On line ten after the OR the closing parenthesis for the number cast should be after "segment", but instead it got put after the zero in the less than check. This incorrectly (yet correctly, since it passes 😅) casts the boolean result of "segment < 0" to a number instead of casting the string representation of a number held in "segment" to a number before making the less than check. Otherwise great video ❤

    • @CodeWithZi
      @CodeWithZi  2 หลายเดือนก่อน

      ow yeah I didnt see this typo! thanks for pointing it out😁