Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add more hard problems

Đang mở
#7 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend, testing

Hướng nghiên cứu

Read backend/arena/docs/problems.md and inspect the existing problem JSON and reference solutions in backend/arena/problems/ and backend/arena/solutions/ to understand the format and constraints. Add one original hard problem with JavaScript and Python reference solutions, using only types listed in issue #3 and keeping the gaming theme. Run cd backend && npm run validate:problems; done means both solutions pass all examples and tests, including edge cases and a large input that rules out brute force.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

The problem set has 17 easy, 19 medium and only 9 hard problems. Ranked battles at high ratings draw from the hard pool, so strong players see repeats quickly.

What we need

New hard problems, ideally in topics the set barely covers today: union find, trie, topological sort, sweep line, bit manipulation and two pointers each appear once or twice.

How to add one

  • Read backend/arena/docs/problems.md.
  • Create backend/arena/problems/<id>.json plus two independently written reference solutions, backend/arena/solutions/<id>.js and <id>.py.
  • Keep the gaming theme the rest of the set uses (lobbies, ratings, loot, replays).
  • Use only the types listed in #3 so every language driver can run it.

Definition of done

  • cd backend && npm run validate:problems passes: both references pass every example and test.
  • Tests include edge cases and at least one large input that a brute-force solution would time out on.
  • Problems are your own work, not copied from another site.

One problem per pull request is perfect.

Ngôn ngữ chính
JavaScript
Star
0
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sennaicodes/codearena

Tất cả issue của sennaicodes/codearena

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.