Welcome to the ultimate battleground of algorithms.
Hone your strategies, climb the ranks, and forge your legacy as an Algo Wars champion.
Everything you need to dominate the coding arena and level up your programming skills
Get started in minutes and begin your journey to coding mastery
Test your coding knowledge with lightning-fast MCQ battles
1int mystery() {
2 int arr[] = {1, 5, 3, 9, 2};
3 int result = arr[0];
4
5 for (int i = 1; i < 5; i++) {
6 if (arr[i] > result) {
7 result = arr[i];
8 }
9 }
10 return result;
11}