3251. Find the Count of Monotonic Pairs II
3251. Find the Count of Monotonic Pairs II
Description
You are given an array of positive integers nums
of length n
.
3251. Find the Count of Monotonic Pairs II
You are given an array of positive integers nums
of length n
.
3250. Find the Count of Monotonic Pairs I
You are given an array of positive integers nums
of length n
.
3249. Count the Number of Good Nodes
There is an undirected tree with n
nodes labeled from 0
to n - 1
, and rooted at node 0
. You are given a 2D integer array edges
of length n - 1
, where edges[i] = [ai, bi] indicates that there is an edge between nodes ai and bi in the tree.
3244. Shortest Distance After Road Addition Queries II
You are given an integer n
and a 2D integer array queries
.
3243. Shortest Distance After Road Addition Queries I
You are given an integer n
and a 2D integer array queries
.
3241. Time Taken to Mark All Nodes
There exists an undirected tree with n
nodes numbered 0
to n - 1
. You are given a 2D integer array edges
of length n - 1
, where edges[i] = [ui, vi] indicates that there is an edge between nodes ui and vi in the tree.
3240. Minimum Number of Flips to Make Binary Grid Palindromic II
You are given an m x n
binary matrix grid
.
3239. Minimum Number of Flips to Make Binary Grid Palindromic I
You are given an m x n
binary matrix grid
.
3233. Find the Count of Numbers Which Are Not Special
You are given 2 positive integers l
and r
. For any number x
, all positive divisors of x
except x
are called the proper divisors of x
.