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 stack, tree and backtracking problems

Đang mở
#8 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
76/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

Start with backend/arena/docs/problems.md, then inspect example JSON problems in backend/arena/problems/ and reference solutions in backend/arena/solutions/. Choose one stack, tree, or backtracking problem with supported input types, and add its JSON file plus independent JavaScript and Python references. Run cd backend && npm run validate:problems; done means validation passes and the topic tag makes the problem available in filters.

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

Mô tả

enhancement good first issue help wanted

Of the 45 problems, almost none use a stack, tree or backtracking. These are some of the most common interview topics and a natural fit for short battles.

Ideas that fit the gaming theme

  • Stack: matching combo inputs, undo history in a level editor, next stronger opponent in a queue.
  • Trees: a tournament bracket or guild hierarchy given as a parent array (integer[]), asking for depth, subtree totals or lowest common ancestor.
  • Backtracking: every squad of size k under a cost cap, or filling a small puzzle grid.

Trees must arrive as one of the supported input types (for example a parent array or an edge list as [integer, integer][]), since drivers do not build node objects.

How to add one

Follow backend/arena/docs/problems.md: one JSON file in backend/arena/problems/ and independent JavaScript and Python references in backend/arena/solutions/.

Definition of done

  • cd backend && npm run validate:problems passes.
  • Tags include the topic (stack, trees or backtracking) so it shows up in filters.
  • Easy or medium difficulty is welcome; this is a good first problem to write.
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.