6 kyu

Duplicate Arguments

3,041 of 4,450lunitik

Description:

Complete the solution so that it returns true if it contains any duplicate argument values. Any number of arguments may be passed into the function.

The array values passed in will only be strings or numbers. The only valid return values are true and false.

Examples:

solution(1, 2, 3)             -->  false
solution(1, 2, 3, 2)          -->  true
solution('1', '2', '3', '2')  -->  true
Algorithms

More By Author:

Check out these other kata created by lunitik

Stats:

CreatedAug 16, 2013
PublishedAug 16, 2013
Warriors Trained5866
Total Skips203
Total Code Submissions16534
Total Times Completed4450
JavaScript Completions3041
CoffeeScript Completions111
Ruby Completions177
Python Completions1184
Haskell Completions23
λ Calculus Completions8
Total Stars51
% of votes with a positive feedback rating92% of 594
Total "Very Satisfied" Votes506
Total "Somewhat Satisfied" Votes76
Total "Not Satisfied" Votes12
Ad
Contributors
  • lunitik Avatar
  • jhoffner Avatar
  • anter69 Avatar
  • JohanWiltink Avatar
  • Blind4Basics Avatar
  • bestwebua Avatar
  • ejini战神 Avatar
  • saudiGuy Avatar
Ad