xinyu04

导航

2022年9月2日 #

[Google] LeetCode 778 Swim in Rising Water 优先队列

摘要: You are given an n x n integer matrix grid where each value grid[i][j] represents the elevation at that point (i, j). The rain starts to fall. At time 阅读全文

posted @ 2022-09-02 22:35 Blackzxy 阅读(57) 评论(0) 推荐(0) 编辑

[Google] LeetCode 528 Random Pick with Weight

摘要: You are given a 0-indexed array of positive integers w where w[i] describes the weight of the ith index. You need to implement the function pickIndex( 阅读全文

posted @ 2022-09-02 17:43 Blackzxy 阅读(17) 评论(0) 推荐(0) 编辑