04 2023 档案

摘要:Given an integer num, return the number of steps to reduce it to zero. In one step, if the current number is even, you have to divide it by 2, otherwi 阅读全文
posted @ 2023-04-25 14:02 Grandyang 阅读(164) 评论(0) 推荐(0) 编辑
摘要:Given an array of integers arr and an integer d. In one step you can jump from index i to index: i + x where: i + x < arr.length and 0 < x <= d. i - x 阅读全文
posted @ 2023-04-14 13:16 Grandyang 阅读(280) 评论(0) 推荐(0) 编辑
摘要:Given the root of a binary tree, split the binary tree into two subtrees by removing one edge such that the product of the sums of the subtrees is max 阅读全文
posted @ 2023-04-05 13:42 Grandyang 阅读(172) 评论(0) 推荐(0) 编辑
摘要:You are given an integer array arr. You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum 阅读全文
posted @ 2023-04-02 08:13 Grandyang 阅读(147) 评论(0) 推荐(0) 编辑

Fork me on GitHub