xinyu04

导航

2022年8月2日 #

LeetCode 547 Number of Provinces 连通块个数

摘要: There are $n$ cities. Some of them are connected, while some are not. If city $a$ is connected directly with city $b$, and city $b$ is connected direc 阅读全文

posted @ 2022-08-02 18:01 Blackzxy 阅读(27) 评论(0) 推荐(0) 编辑

LeetCode 200 Number of Islands

摘要: Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by wa 阅读全文

posted @ 2022-08-02 14:55 Blackzxy 阅读(7) 评论(0) 推荐(0) 编辑

MathProblem 20 Nine minute egg problem

摘要: You are a cook in a remote area with no clocks or other way of keeping time other than a 4 minute hourglass and a 7 minute hourglass. You do have a st 阅读全文

posted @ 2022-08-02 03:44 Blackzxy 阅读(15) 评论(0) 推荐(0) 编辑

LeetCode 454 4Sum II

摘要: Given four integer arrays nums1, nums2, nums3, and nums4 all of length n, return the number of tuples (i, j, k, l) such that: $0 \le i, j, k, l < n$ n 阅读全文

posted @ 2022-08-02 03:20 Blackzxy 阅读(8) 评论(0) 推荐(0) 编辑