📌  相关文章
📜  在线将python转换为js - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:18.193000             🧑  作者: Mango

代码示例3
class Solution:
    def getDecimalValue(self, head: ListNode) -> int:
        num = head.val
        while head.next:
            num = (num << 1) | head.next.val
            head = head.next
        return num