6 kyu

Duplicate Arguments

3,037 of 4,428lunitik

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 Trained5827
Total Skips200
Total Code Submissions16502
Total Times Completed4428
JavaScript Completions3037
CoffeeScript Completions111
Ruby Completions176
Python Completions1167
Haskell Completions23
λ Calculus Completions7
Total Stars52
% 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