Connect with fellow learners in the PlacePrep Discord communityㆍ Join now →
R's PlacePrep

How to contribute to PlacePrep: add company questions or BEU PYQs in Markdown, follow the parser format and open a pull request.

Contributing to R's PlacePrep

Thank you for your interest in contributing to R's PlacePrep! This guide will help you get started.

Content Contribution

Adding Company Questions

Questions are stored as markdown files in the content/companies/ directory. Each company folder contains one folder per exam pattern or topic, and each of those contains a questions.md.

Directory Structure

content/companies/
├── tcs/
│   ├── aptitude/questions.md
│   ├── coding/questions.md
│   └── 2025-nqt/questions.md
├── infosys/
│   └── 2025-irt/questions.md
└── accenture/
    └── 2025-nlt/questions.md

Existing companies: accenture, capgemini, cognizant, deloitte, ey-gds, genpact, goldman-sachs, hcltech, ibm, infosys, ltimindtree, tcs, tech-mahindra, wipro.

Question Format

Each file starts with frontmatter, groups questions under ## Topic Name headings, and uses Qn: headers for individual questions.
markdown
---
title: TCS NQT Coding Questions
description: TCS NQT coding practice questions with solutions
lastUpdated: 2025-03-03
---

## Problems on Arrays

**Q1: Find the Smallest Number in an Array**

**Problem**: Given an array of N integers, find and return the smallest element.

**Example**:

```
Input: arr = [5, 3, 7, 2, 8]
Output: 2
```

**Solution (Python)**:

```python
print(min(arr))
```

**Time Complexity**: O(N) | **Space Complexity**: O(1)

**Answer**: Iterate through the array while tracking the minimum value.

---

Parser Rules

The parser is strict about these markers:

MarkerRule
Topic heading## Topic Name — any h2 that isn't a question header groups the questions under it
Question header**Q1: Title**, ### Q1: Title, ## Q1: Title, or Q1: Title
Problem**Problem**: — runs until the first **Solution
Solution**Solution**: or **Solution (Language)**: followed by a fenced code block
Code blocksMust declare a language, e.g. ```python
ComplexityOne line, pipe-separated: **Time Complexity**: O(N) | **Space Complexity**: O(1)
AnswerOne line. Accepted: **Answer**:, **Answer:**, Answer:, **Answers**:

Notes:

  • If a coding question has no explicit answer line, the first code block is used as the answer
  • The question type is inferred: code blocks → coding; a single-letter answer or lettered options → MCQ; otherwise numerical
  • **Difficulty:**, **Topic:**, and **Points:** markers are not parsed. Topics come from the ## Topic Name heading, and marks are assigned by admins in the exam builder.

Adding PYQ (Previous Year Questions)

University PYQ papers are stored in the content/pyq/ directory, organized by branch, subject, and year.

PYQ Directory Structure

Only the cse branch exists today. Branches are read from the filesystem, so adding a new branch folder is all it takes to make it appear.
content/pyq/
└── cse/
    ├── coa/
    │   ├── 2022/questions.md
    │   └── 2023/questions.md
    ├── daa/
    │   ├── 2022/questions.md
    │   └── 2023/questions.md
    ├── de/
    │   └── 2023/questions.md
    ├── dm/
    │   └── 2022/questions.md
    ├── hrdob/
    │   ├── 2022/questions.md
    │   └── 2023/questions.md
    └── os/
        └── 2023/questions.md

PYQ Markdown Format

Each questions.md file should follow this structure:
markdown
---
title: Subject Name - End Semester YEAR
description: BEU B.Tech Semester X End Semester Examination YEAR
university: Bihar Engineering University, Patna
courseCode: "XXXXXX"
semester: IV
totalMarks: 70
duration: 03 Hours
lastUpdated: 2025-02-09
---

# Subject Name

End Semester Examination - YEAR | Bihar Engineering University, Patna

**Instructions:**
- The marks are indicated in the right-hand margin.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.

---

## MCQ Section

### Q1: Multiple Choice Questions (Any Seven) [2 × 7 = 14]

**Q1(a): Sub-question Title**

Question text here...

- (i) Option A
- (ii) Option B
- **(iii) Correct Option** ✓
- (iv) Option D

**Answer:** (iii) Correct Option

**Solution:** Explanation of the correct answer.

---

## Long Answer Questions

### Q2: Question Title [14]

Question description here...

**(a)** Part A of the question [7]

**(b)** Part B of the question [7]

**Answer:**

Detailed answer for the question...

How to Add a New Subject

  1. Create the folder structure: content/pyq/[branch]/[subject-slug]/[year]/questions.md
  2. Add the subject to src/types/pyq.ts:
    • Add the slug to SUBJECT_SEMESTER_MAP with the semester number
    • Add the display name to SUBJECT_NAMES
  3. Follow the markdown format above
  4. Include **Answer:** and **Solution:** markers for all questions

PYQ Content Guidelines

  • Sections: Use ## Section Name for paper sections (MCQ, Part A, Part B, etc.)
  • Questions: Use ### Q1: Title [Marks] format for individual questions
  • Sub-questions: Use **Q1(a):** for MCQ sub-parts or **(a)** for long answer sub-parts
  • Answers: Always mark with **Answer:** so the platform can detect and highlight them
  • Solutions: Add **Solution:** for detailed explanations
  • MCQ Correct Option: Bold the correct option and add ✓ mark

Steps to Add Questions

  1. Fork the repository
  2. Navigate to the appropriate company/category folder
  3. Edit the existing .md file or create a new one
  4. Follow the format above
  5. Commit your changes with a descriptive message
  6. Submit a pull request

Content Guidelines

  • Accuracy: Ensure questions and answers are correct
  • Clarity: Write clear, unambiguous questions
  • Formatting: Follow the markdown format exactly
  • Attribution: Don't copy questions from copyrighted sources
  • Language: Use professional, grammatically correct English

Improving Documentation

Help make our documentation better:

  1. Fix typos and grammatical errors
  2. Add missing information
  3. Clarify confusing sections
  4. Add examples and screenshots
  5. Update outdated information
Documentation files are located in content/docs/

Want to contribute? Please email rohansrma3@gmail.com.

Thank you for making R's PlacePrep better! ❤️

Found a problem with this page? Help us fix it.

Still stuck? Read the FAQ or the troubleshooting guide.