leetcode
poipoi626
简简单单的午饭
展开
-
(LeetCode)1539. 第 k 个缺失的正整数-C
题目描述: 给你一个 严格升序排列 的正整数数组 arr 和一个整数 k 。请你找到这个数组里第 k 个缺失的正整数。 (学英语时间) Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from this array. 示例 1: 输入:arr = [2,3,4,7,原创 2020-08-18 11:44:48 · 572 阅读 · 0 评论 -
(LeetCode)989. 数组形式的整数加法-C
(LeetCode)989. 数组形式的整数加法 题目描述: 对于非负整数 X 而言,X 的数组形式是每位数字按从左到右的顺序形成的数组。例如,如果 X = 1231,那么其数组形式为 [1,2,3,1]。 给定非负整数 X 的数组形式 A,返回整数 X+K 的数组形式。 (学英语时间) For a non-negative integer X, the array-form of X is an...原创 2020-08-18 10:42:04 · 275 阅读 · 0 评论