摘要:
Given an integer array nums of size n, return the minimum number of moves required to make all array elements equal. In one move, you can increment or 阅读全文
摘要:
Given a list paths of directory info, including the directory path, and all the files with contents in this directory, return all the duplicate files 阅读全文
摘要:
There are several cards arranged in a row, and each card has an associated number of points The points are given in the integer array cardPoints. In o 阅读全文
摘要:
Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given two positive integers left 阅读全文
摘要:
Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most one element. We define an array is n 阅读全文
摘要:
There are n different online courses numbered from 1 to n. You are given an array courses where courses[i] = [durationi, lastDayi] indicate that the i 阅读全文
摘要:
Design a special dictionary which has some words and allows you to search the words in it by a prefix and a suffix. Implement the WordFilter class: Wo 阅读全文
摘要:
Given three integers x, y, and bound, return a list of all the powerful integers that have a value less than or equal to bound. An integer is powerful 阅读全文
摘要:
Let's call an array arr a mountain if the following properties hold: arr.length >= 3 There exists some i with 0 < i < arr.length - 1 such that: arr[0] 阅读全文
摘要:
Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the list t 阅读全文