03 2023 档案
摘要:Two strings word1 and word2 are considered almost equivalent if the differences between the frequencies of each letter from 'a' to 'z' between word1 a
阅读全文
摘要:You are given an integer n. There is an undirected graph with n nodes, numbered from 0 to n - 1. You are given a 2D integer array edges where edges[i]
阅读全文
摘要:Design an algorithm that accepts a stream of characters and checks if a suffix of these characters is a string of a given array of strings words. For
阅读全文
摘要:Given an integer array nums, return the number of subarrays filled with 0. A subarray is a contiguous non-empty sequence of elements within an array.
阅读全文
摘要:Given the root of a binary tree, determine if it is a complete binary tree. In a complete binary tree, every level, except possibly the last, is compl
阅读全文
摘要:Given an array of positive integers nums, remove the smallest subarray (possibly empty) such that the sum of the remaining elements is divisible by p.
阅读全文
摘要:You are given a 0-indexed string blocks of length n, where blocks[i] is either 'W' or 'B', representing the color of the ith block. The characters 'W'
阅读全文
摘要:You are given an array time where time[i] denotes the time taken by the ith bus to complete one trip. Each bus can make multiple trips successively; t
阅读全文

浙公网安备 33010602011771号