Check if Array is Good Problem

Check if Array is Good Problem — ExecCode Easy DSA Practice

Solve the Check if Array is Good problem on ExecCode. Free online easy DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.

Description You are given an integer array nums. We consider an array goodif it is a permutation of an array base[n]. base[n] = 1, 2, ..., n - 1, n, n. For example, base[1] = [1, 1] andbase[3] = [1, 2, 3, 3]. Return true if the given array is good, otherwise return false. Note:A…

Practice Check if Array is Good free on ExecCode. Browse more ExecCode DSA problems.