网站首页 站内搜索

搜索结果

查询Tags标签: getDecimalValue,共有 1条记录
  • 1290. Convert Binary Number in a Linked List to Integer

    This is a super easy problem. Time Compexity O(n), Space Complexity O(n)int res = 0;public int getDecimalValue(ListNode head) {if(head==null)return res;res = res*2+head.val;return getDecimalValue(head.next);} int res = 0;public int getDecimalValue(Lis…

    2022/2/15 6:11:36 人评论 次浏览
扫一扫关注最新编程教程