摘要:
原题链接在这里:https://leetcode.com/problems/car-pooling/ 题目: You are driving a vehicle that has capacity empty seats initially available for passengers. The 阅读全文
posted @ 2019-12-11 13:14
Dylan_Java_NYC
阅读(536)
评论(0)
推荐(1)
摘要:
原题链接在这里:https://leetcode.com/problems/random-pick-with-weight/ 题目: Given an array w of positive integers, where w[i] describes the weight of index i, 阅读全文
posted @ 2019-12-11 11:23
Dylan_Java_NYC
阅读(381)
评论(0)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/linked-list-random-node/ 题目: Given a singly linked list, return a random node's value from the linked list. Each 阅读全文
posted @ 2019-12-11 09:45
Dylan_Java_NYC
阅读(283)
评论(0)
推荐(0)
摘要:
原题链接在这里:https://leetcode.com/problems/random-pick-index/ 题目: Given an array of integers with possible duplicates, randomly output the index of a given 阅读全文
posted @ 2019-12-11 09:25
Dylan_Java_NYC
阅读(479)
评论(0)
推荐(0)