BackmediumUncategorized uncategorized medium

Unique Frequencies in Signal Sequence Solution

Problem Statement

You are given an array of integers `signal` representing a sequence of frequencies. Write a function to find the unique frequencies in the `signal` sequence and return them as an array of integers.

Example 1
Input
[1,2,3,2,1]
Output
[1,2,3]

Explanation: The function should return unique frequencies in the signal.

Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free