xinyu04

导航

2022年9月17日 #

LeetCode 128 Longest Consecutive Sequence

摘要: Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that runs in $O( 阅读全文

posted @ 2022-09-17 04:08 Blackzxy 阅读(4) 评论(0) 推荐(0) 编辑

LeetCode 1231 Divide Chocolate 二分答案

摘要: You have one chocolate bar that consists of some chunks. Each chunk has its own sweetness given by the array sweetness. You want to share the chocolat 阅读全文

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