摘要: You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai 阅读全文
posted @ 2020-06-06 11:00 Schwifty 阅读(172) 评论(0) 推荐(0)
摘要: Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100 阅读全文
posted @ 2020-06-06 10:29 Schwifty 阅读(205) 评论(0) 推荐(0)
摘要: Given an array w of positive integers, where w[i] describes the weight of index i, write a function pickIndex which randomly picks an index in proport 阅读全文
posted @ 2020-06-06 05:00 Schwifty 阅读(83) 评论(0) 推荐(0)