941. Valid Mountain Array-有效的山脉数组
Given an array of integers arr, return true if and only... » 阅读全文
Given an array of integers arr, return true if and only... » 阅读全文
Given the root node of a binary search tree, return the... » 阅读全文
You are given an array of logs. Each log is a space-del... » 阅读全文
写一个RecentCounter类来计算特定时间范围内最近的请求。 请你实现RecentCounter类: R... » 阅读全文
Every email consists of a local name and a domain name,... » 阅读全文
Your friend is typing his name into a keyboard. Sometim... » 阅读全文
Given an array A of non-negative integers, half of the ... » 阅读全文
给你一个字符串s,根据下述规则反转字符串: 所有非英文字母保留在原有位置。 所有英文字母(小写或大写)位置反转... » 阅读全文
In a deck of cards, each card has an integer written on... » 阅读全文
Given an array A of integers, for each integer A[i] we ... » 阅读全文