02 2024 档案

摘要:You are given the root of a binary tree and a positive integer k. The level sum in the tree is the sum of the values of the nodes that are on the same 阅读全文
posted @ 2024-02-28 09:43 CNoodle 阅读(43) 评论(0) 推荐(0)
摘要:You are given the root of a binary search tree and an array queries of size n consisting of positive integers. Find a 2D array answer of size n where 阅读全文
posted @ 2024-02-26 13:30 CNoodle 阅读(34) 评论(0) 推荐(0)
摘要:Given an array of strings words, return the first palindromic string in the array. If there is no such string, return an empty string "". A string is 阅读全文
posted @ 2024-02-13 14:03 CNoodle 阅读(49) 评论(0) 推荐(0)
摘要:Given the root of a binary tree, replace the value of each node in the tree with the sum of all its cousins' values. Two nodes of a binary tree are co 阅读全文
posted @ 2024-02-08 09:07 CNoodle 阅读(44) 评论(0) 推荐(0)
摘要:小扣当前位于魔塔游戏第一层,共有 N 个房间,编号为 0 ~ N-1。每个房间的补血道具/怪物对于血量影响记于数组 nums,其中正数表示道具补血数值,即血量增加对应数值;负数表示怪物造成伤害值,即血量减少对应数值;0 表示房间对血量无影响。 小扣初始血量为 1,且无上限。假定小扣原计划按房间编号升 阅读全文
posted @ 2024-02-06 16:14 CNoodle 阅读(96) 评论(0) 推荐(0)
摘要:You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alternate taking 阅读全文
posted @ 2024-02-04 05:02 CNoodle 阅读(61) 评论(0) 推荐(0)
摘要:You are given an integer array nums of size n and a positive integer k. Divide the array into one or more arrays of size 3 satisfying the following co 阅读全文
posted @ 2024-02-02 12:53 CNoodle 阅读(59) 评论(0) 推荐(0)