CodeBattleGround

ONGOING TOURNAMENT

Prove Your Coding Skills in Real Battles

Compete against the best coders, solve challenging problems, and climb the leaderboard

main.js
// Find the winner with highest points
function findWinner(scores) {
return scores
.sort((a, b) => b.points - a.points)
.map(player => player.name)
[0];
}
console.log(findWinner([{ name: 'Alice', points: 1500 }, { name: 'Bob', points: 2000 }, { name: 'Charlie', points: 1800 }]));
|

Active Challenges

Global Leaderboard

RankWarriorPointsBadge