摘要: leetcode398 随机数索引 题目要求 给你一个可能含有 重复元素 的整数数组 nums ,请你随机输出给定的目标数字 target 的索引。你可以假设给定的数字一定存在于数组中。 实现 Solution 类: Solution(int[] nums) 用数组 nums 初始化对象。 int 阅读全文
posted @ 2022-04-25 19:15 ALKING1001 阅读(58) 评论(0) 推荐(0) 编辑