practice: add questions on time complexity (Big-O)

Đang mở Phù hợp với người mới
#35 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
85/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
Công nghệ
json, typescript
Lĩnh vực
content

Hướng nghiên cứu

Đọc các câu hỏi lập trình hiện có trong shared/practice/questions.json để làm theo cấu trúc và quy ước của chúng. Thêm ba câu hỏi trắc nghiệm Big-O mới vào chủ đề lập trình, mỗi câu có bốn lựa chọn, một answerId và phần giải thích lập luận. Chạy npm ci và npm test; thay đổi được hoàn tất khi các bước kiểm tra ngân hàng câu hỏi đạt yêu cầu với các câu hỏi mới và các ID hiện có không đổi.

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

What to add

Add 3 original multiple-choice questions on time complexity (Big-O) to the programming topic in shared/practice/questions.json.

The programming topic has 6 questions and none of them cover time complexity (Big-O) yet. Some ideas (write your own wording and numbers):

  • the complexity of a single loop over n items
  • the complexity of two nested loops over n items
  • comparing two approaches to the same task (binary search is already covered)

Look at the existing programming questions in the file first and follow the same shape.

Requirements

  • The questions must be your own. Do not copy from books, websites, coaching material, or past papers.
  • Each question has exactly 4 options (a to d), one answerId, and an explanation that shows the reasoning or working, not only the answer.
  • Use "topicId": "programming" and "difficulty": "easy" or "medium". A mix of both is welcome.
  • Give each question a new lowercase ID, for example programming-nested-loop-complexity. Do not change existing IDs.
  • Indian context is welcome (Rs, km, common names).

Check your change

npm ci
npm test

npm test checks the question bank (unique IDs, four distinct options, a valid answer). If you have the .NET SDK, also run dotnet test backend/ProCoderJi.slnx --configuration Release. If you don't, CI runs the backend tests on your pull request.

Before you start

Leave a comment here when you start so others can pick a different issue. New to open source? Start with CONTRIBUTING.md. Questions are welcome in the comments.

Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
8 giờ 58 phút
Pull request đã merge (30 ngày)
37

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 procoderji-com/procoderji

Tất cả issue của procoderji-com/procoderji

Issue tương tự

Thêm issue về TypeScript

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.