摘要:
原题链接在这里:https://leetcode.com/problems/car-pooling/ 题目: You are driving a vehicle that has capacity empty seats initially available for passengers. The 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/random-pick-with-weight/ 题目: Given an array w of positive integers, where w[i] describes the weight of index i, 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/linked-list-random-node/ 题目: Given a singly linked list, return a random node's value from the linked list. Each 阅读全文
摘要:
原题链接在这里:https://leetcode.com/problems/random-pick-index/ 题目: Given an array of integers with possible duplicates, randomly output the index of a given 阅读全文