code.wahu.network Open 1-Hour Developer Sandbox

CodeSphere Practice Arena

OPEN TO ALL No Login Required Linux Bubblewrap Sandbox

Multi-Language Algorithm, Web Tech & SQL Sandbox

Write and test code with live evaluation in Python 3 (v3.14), Java 21 (OpenJDK), C++ (G++ 15), C (GCC 15), Web Technologies (HTML5/CSS3/JS DOM preview), and SQLite3 database SQL. Each practice session is maintained for up to 1 hour with one-click extension.

Category:
Curated Practice Problems
8 Problems Available
# Problem Title Category Difficulty Marks Action
0
Interactive Code Playground & Compiler Sandbox
Free-form sandbox: Python 3, Java 21, C, C++, Web Tech HTML/CSS/JS, SQLite3
SANDBOX FREE PLAY ∞ Open
1
Find Missing Number in Sequence
Given an array containing N distinct numbers taken from the sequence 1 to N+1, exactly one integer is missing. Your task is to identify and print the single missing integer. Example: If N = 5 and the sequence is [1, 2, 4, 5, 6], the missing number is 3.
Algorithm EASY 10m Solve
2
Valid Balanced Parentheses Check
Given a string containing only brackets: '(', ')', '{', '}', '[', and ']', determine if the input string is valid. An input string is valid if: 1. Open brackets are closed by the same type of brackets. 2. Open brackets are closed in the correct order. 3. Every close bracket has a corresponding open bracket of the same type.
Algorithm MEDIUM 15m Solve
3
Binary Search with Target Count
Given a sorted array of N integers in non-decreasing order, count the total occurrences of a target integer K using an efficient O(log N) algorithm. Print the total frequency of K in the array, or 0 if K is not present.
Algorithm MEDIUM 15m Solve
4
MapReduce Word Frequency Tokenizer
Implement the Mapper and Reducer aggregation logic for a simulated Hadoop MapReduce task. Given a stream of input lines, your program should normalize all words to lowercase, remove punctuation, and print each distinct word followed by its overall occurrence count in alphabetical order. This experiment simulates Phase 1 of Hadoop MapReduce: Mapping tokens into key-value pairs (word, 1) and Shuffling/Reducing them into aggregate counts (word, total).
Algorithm EASY 10m Solve
5
Social Media Sentiment Lexicon Classifier
In social media analytics (JNTU-GV MCA UNIT-V), sentiment analysis classifies customer feedback into POSITIVE, NEGATIVE, or NEUTRAL opinions based on opinion mining lexicon weights. You are given: 1. A list of known positive sentiment terms. 2. A list of known negative sentiment terms. 3. A student or customer social media post. Calculate the net sentiment score: (Count of Positive Words - Count of Negative Words). - If Net Score > 0 -> Print "POSITIVE" - If Net Score < 0 -> Print "NEGATIVE" - If Net Score == 0 -> Print "NEUTRAL"
Algorithm EASY 10m Solve
6
Responsive Student Registration & Validation Portal
Design a responsive, accessible student registration portal adhering to modern HTML5, CSS Flexbox/Grid, and client-side JavaScript validation standards. Key Requirements: 1. Form structure containing: Full Name (`#fullname`), Roll Number (`#rollno`), Email Address (`#email`), Password (`#password`), and Semester dropdown (`#semester`). 2. Real-time JavaScript validation: - Email validation verifying presence of @ and valid domain format. - Password minimum length (>= 8 characters with at least one uppercase letter and one digit). - Error message feedback elements (`#emailError`, `#passwordError`). 3. Modern CSS styling with card elevation, fluid responsive inputs, and interactive button hover effects.
Web Tech MEDIUM 15m Solve
7
Department & Employee Relational Analytics (Multi-Table JOINs)
Write an SQL query using an `INNER JOIN` (or `LEFT JOIN`) between `departments` and `employees` to retrieve each department's name, total employee count, and the maximum salary earned in that department. Query Requirements: 1. Select columns: `dept_name`, `total_employees`, `max_salary`. 2. Group records by department name. 3. Filter for departments that have at least 1 employee. 4. Order results by `max_salary` descending.
Database SQL EASY 10m Solve
8
High-Earner Department Analytics (Correlated Subqueries)
Write an SQL query using a correlated subquery to identify all employees whose salary strictly exceeds the average salary of their respective department. Query Requirements: 1. Select columns: `emp_id`, `name`, `salary`, `dept_id`. 2. Filter condition: `salary > (SELECT AVG(salary) FROM employees WHERE dept_id = outer.dept_id)`. 3. Order results by `emp_id` ascending.
Database SQL MEDIUM 15m Solve