Skip to content
U
uByte
Tutorials
🐹
Go
Beginner-friendly
🐍
Python
Clean & readable
🟨
JavaScript
Web & Node.js
☕
Java
Enterprise & OOP
🦀
Rust
Systems programming
⚙️
C++
Performance & control
💜
C#
.NET & game dev
Interview Prep
🎯
All problems
Browse every language
🐹
Go
🐍
Python
🟨
JavaScript
☕
Java
🦀
Rust
⚙️
C++
💜
C#
⚡
Daily challenge
One new problem every day
🎤
Interview simulator
Timed mock interview + AI debrief
💬
Interview experiences
Real stories shared anonymously
Certifications
📝
Certifications
Coding exams by language
🐹
Go
🐍
Python
🟨
JavaScript
☕
Java
🦀
Rust
⚙️
C++
💜
C#
U
uByte
U
uByte
Templates
Instructions
Discuss
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <iostream> #include <string> using namespace std; template <typename T> T myMax(T a, T b) { return (a > b) ? a : b; } template <typename T> void swap(T& a, T& b) { T temp = a; a = b; b = temp; } template <typename T> void printArray(const T arr[], int size) { for (int i = 0; i < size; i++) cout << arr[i] << " "; cout << endl; } int main() { cout << myMax(10, 20) << endl; // int cout << myMax(3.14, 2.71) << endl; // double cout << myMax(string("z"), string("a")) << endl; // string! int a = 5, b = 10; swap(a, b); cout << a << " " << b << endl; double arr[] = {3.0, 1.0, 4.0, 1.0, 5.0}; printArray(arr, 5); return 0; }
Go
Python
C++
JavaScript
Java
Rust
C#
▶ Run
✓ Check
↺ Reset starter
Share
Output
Click Run to execute, or Check to validate.
💬 Community
✨ Ask AI
Discussion
Sign in
to join the discussion.