Skip to content

Latest commit

 

History

History
 
 

duplicated_arguments

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Get duplicated arguments

Instructions

Given variable number of arguments (strings) checks whether there are any duplicates among the arguments and return array of all unique duplicates. If no arguments are passes return empty array.

Challenge | Solution

Examples

get_duplicated_arguments("a", "b", "c") # empty list

get_duplicated_arguments("a", "b", "c", "a") # [a]

Hints

Hint 1 Use frequency counter or multiple pointers pattern.