Category: c / c++
Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is the same. Return true if …
Given an array of unique integers salary where salary is the salary of the employee i. Return the average salary of employees excluding the minimum and maximum salary. Example …
Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of …
Given a root of an N-ary tree, return a deep copy (clone) of the tree. Each node in the n-ary tree contains a val (int) and a list (List) …
Given two arrays nums1 and nums2. Return the maximum dot product between non-empty subsequences of nums1 and nums2 with the same length. A subsequence of a array is a …