BashaByte
One judge for practice and for exams

Practice, learn and get assessed in one coding workspace.

Solve problems with instant verdicts on hidden tests, learn through structured courses, and sit proctored assessments your faculty can trust. Same editor, same judge, everywhere.

  • Free for students
  • 8 languages judged
  • Proctored assessments
1. Two Sum
Two Sum Easy

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

Example 1

Input
nums = [2,7,11,15]
target = 9
Output
[0,1]

Constraints

  • 2 ≤ nums.length ≤ 10⁴
  • Exactly one valid answer exists.
solution.py

                  
Test results
Case 1 Case 2 12 hidden
Practice problems
112
Languages judged
8
Assessment questions
302
Accepted solutions
21

Live counts from the platform.

How judging works

From keystroke to verdict in seconds.

Every submission, whether it is practice or a final exam, goes through the same four steps on the same judge.

  1. You submit

    Your code and chosen language are sent to the judge.

  2. Isolated sandbox

    It compiles and runs with fixed time and memory limits.

  3. Hidden tests

    The visible examples first, then every hidden case.

  4. Verdict

    Accepted, wrong answer or time limit, with the first case that failed.

Who it is for

Built for both sides of the classroom.

Students

A place to build the habit, and the proof that you have it.

  • Graded problem set. 102 easy, 10 medium and 0 hard problems, tagged by topic.
  • Instant, honest verdicts. Every submission runs against hidden test cases in a sandbox.
  • Courses that teach first. Lessons with notes, quizzes and a built-in code playground.
  • Visible progress. A practice calendar, streaks, points and a public leaderboard.

Faculty

Run coding tests without building the infrastructure yourself.

  • Your own question bank. MCQ, coding and SQL questions, written in the app or imported from a spreadsheet.
  • Sectioned, timed assessments. Assign them to groups, schedule a window and invite co-moderators.
  • Proctoring built in. Fullscreen enforcement and a log of tab switches and paste attempts.
  • Automatic grading. Code is judged on hidden tests. You decide when results are released.

Practice

A problem set with structure, not just volume.

Problems are ordered from first loops to two pointers, so there is always a sensible next step. Each one has examples, constraints, an editorial and a discussion thread.

Accepted
Every hidden test passed within the limits.
Wrong answer
We show the first case that failed and the expected output.
Time limit
Correct so far, but too slow. Time to rethink the approach.

Scoring: Easy 10, Medium 25, Hard 50 points. Only your first accepted solution to a problem counts.

Problem set View all 112
#TitleDifficultyAcceptance
1 Even or Odd Easy 91%
2 Voting Eligibility Check Easy 100%
3 Check Leap year Easy 100%
4 Electricity Bill Calculator Easy 100%
5 Print Multiplication Table Easy 100%
6 Multiplication Table Using For-Else Medium New
7 Sum of First N Natural Numbers Easy New
Easy 102 Medium 10 Hard 0
Leaderboard Full leaderboard
  1. 1 maha778 4 solved 40 pts
  2. 2 NasirAdmin 2 solved 20 pts
  3. 3 StaffUser1 2 solved 20 pts

Assessments

Coding assessments you can stand behind.

Build a test from your question bank, schedule it for a group, and let BashaByte run, proctor and grade it. Every number in the report can be traced back to a submission.

Create a faculty account
Live Data Structures · Mid-term
00:45:00
48In progress
12Submitted
3Flags
Q1 · MCQ92%
Q2 · Coding64%
Q3 · Coding31%
Proctor log
  • Candidate 14 switched tabs
  • Candidate 07 submitted Q2
  • Candidate 31 returned to fullscreen

Illustration. Figures are examples.

  1. 01

    Build

    Pick MCQ, coding and SQL questions from your bank, or import them. Arrange them into timed sections.

  2. 02

    Schedule

    Assign the test to student groups, set the window and add co-moderators.

  3. 03

    Proctor

    Students work in fullscreen with autosave. Tab switches and paste attempts are logged.

  4. 04

    Release

    Code is graded on hidden tests. Review the report, then release results when you are ready.

Languages

Write in the language you think in.

Every language runs on the same judge, with the same tests and fair time limits. Hover a language to see it say hello.

Questions

Good to know.

Is BashaByte free for students?

Yes. Creating an account, practising problems and climbing the leaderboard are free.

How are solutions judged?

Your code runs in a sandbox against the visible examples and a set of hidden test cases. A solution is accepted only when every test passes within the time and memory limits.

What does proctoring record?

During an assessment the page asks for fullscreen and logs when a student leaves it, switches tabs or tries to paste. Faculty see this log next to each attempt. There is no webcam recording.

Can faculty bring their own questions?

Yes. Faculty write MCQ, coding and SQL questions in the app or import them from a spreadsheet, then reuse them across assessments.

When do students see their results?

When the faculty member releases them. Until then, students see that their attempt was submitted.

Ready when you are

Your next accepted solution starts here.