Back to Contests

Weekly Challenge #2 – OOP & Data Structures

Intermediate level contest focusing on object-oriented programming concepts and data structure operations.

Upcoming
Start: 12 January 2026 at 04:38 am
End: 19 January 2026 at 04:38 am

Your Performance

Score

0 / 230

Problems Solved

0 / 8

Progress

Contest Rules

# Contest Rules 1. **Time Limit**: Contest runs for 7 days 2. **Difficulty**: Intermediate to Challenge level 3. **Focus**: Object-Oriented Programming and Data Structures 4. **Languages**: C++, Java, or Python only 5. **Scoring**: Points awarded based on problem difficulty 6. **Submission**: Mark problems as solved after implementing and testing 7. **Best Practices**: Write clean, well-structured code following OOP principles ## Evaluation Criteria - Correctness of solution - Proper use of OOP concepts - Code structure and organization - Understanding of data structures

Problems

Problem 1: Complex Number Addition ClassIntermediateC++

Create a C++ class Complex with real and imaginary parts. Implement addition of two complex numbers.

Score: +30 pts
ClassesOOP
Problem 2: Shape Class with InheritanceChallengeC++

Create a base class Shape and derived classes Circle and Rectangle. Calculate area using polymorphism.

Score: +35 pts
InheritanceOOP
Problem 3: Student Class with MethodsIntermediateJava

Create a Java class Student with name, roll, and marks. Add methods to display and calculate grade.

Score: +25 pts
ClassesOOP
Problem 4: Animal InheritanceIntermediateJava

Create a base class Animal and derived classes Dog and Cat. Override makeSound() method.

Score: +30 pts
InheritanceOOP
Problem 5: Shape InterfaceChallengeJava

Create an interface Shape with calculateArea() method. Implement it in Circle and Rectangle classes.

Score: +35 pts
InterfacesOOP
Problem 6: Student ClassIntermediatePython

Create a Python class Student with name, age, and marks. Add methods to display and calculate average.

Score: +25 pts
ClassesOOP
Problem 7: List ComprehensionIntermediatePython

Write a Python program to create a list of squares of even numbers using list comprehension.

Score: +20 pts
List ComprehensionPythonic
Problem 8: Sort Dictionary by ValuesChallengePython

Write a Python program to sort a dictionary by its values in descending order.

Score: +30 pts
DictionariesSorting