Sign Up
Time to claim your honor
Training
Practice
Complete challenging
Kata
to earn honor and ranks. Re-train to hone technique
Freestyle Sparring
Take turns remixing and refactoring others code through
Kumite
Community
Leaderboards
Achieve honor and move up the global leaderboards
Chat
Join our
Discord
server and chat with your fellow code warriors
Discussions
View our
Github Discussions
board to discuss general Codewars topics
About
Docs
Learn about all of the different aspects of Codewars
Blog
Read the latest news from Codewars and the community
Log In
Sign Up
Name:
Unknown
Clan:
Yokogawa
Skills:
c#, java, python, js
Member Since:
Jul 2015
Last Seen:
May 2025
Profiles:
Following:
12
Followers:
108
Allies:
11
View Profile Badges
Stats
Kata
Collections
Kumite
Social
Discourse
Published
zruF
vs.
AlexWD
9 years ago
Third Greatest
Fundamentals
Arrays
Data Types
Code
Diff
var
thirdGreatest
=
(
arr
)
=>
arr
.
sort
((
a
,
b
)
=>
b
-
a
)[
2
];
var thirdGreatest = (arr) => arr.sort((a,b) =>
a - b)[arr.length - 3
];
var thirdGreatest = (arr) => arr.sort((a,b) =>
b - a)[2
];
Fork
Discuss (0)
Fixture
Confirm
Collect:
undefined
Loading collection data...