05 2022 档案

摘要:Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than k pieces with the s 阅读全文
posted @ 2022-05-31 07:47 CNoodle 阅读(556) 评论(0) 推荐(0)
摘要:A sentence is a string of single-space separated words where each word can contain digits, lowercase letters, and the dollar sign '$'. A word represen 阅读全文
posted @ 2022-05-30 06:07 CNoodle 阅读(129) 评论(0) 推荐(0)
摘要:You are given a 2D integer array stockPrices where stockPrices[i] = [dayi, pricei] indicates the price of the stock on day dayi is pricei. A line char 阅读全文
posted @ 2022-05-24 13:01 CNoodle 阅读(175) 评论(0) 推荐(0)
摘要:Given an array of integers arr, and three integers a, b and c. You need to find the number of good triplets. A triplet (arr[i], arr[j], arr[k]) is goo 阅读全文
posted @ 2022-05-19 05:33 CNoodle 阅读(152) 评论(0) 推荐(0)
摘要:Given a 0-indexed integer array nums, return the number of distinct quadruplets (a, b, c, d) such that: nums[a] + nums[b] + nums[c] == nums[d], and a 阅读全文
posted @ 2022-05-17 02:50 CNoodle 阅读(232) 评论(0) 推荐(0)