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 thecontent/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:
| Marker | Rule |
|---|---|
| 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 blocks | Must declare a language, e.g. ```python |
| Complexity | One line, pipe-separated: **Time Complexity**: O(N) | **Space Complexity**: O(1) |
| Answer | One 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 Nameheading, and marks are assigned by admins in the exam builder.
Adding PYQ (Previous Year Questions)
University PYQ papers are stored in thecontent/pyq/ directory, organized by branch, subject, and year.
PYQ Directory Structure
Only thecse 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
Eachquestions.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
- Create the folder structure:
content/pyq/[branch]/[subject-slug]/[year]/questions.md - Add the subject to
src/types/pyq.ts:- Add the slug to
SUBJECT_SEMESTER_MAPwith the semester number - Add the display name to
SUBJECT_NAMES
- Add the slug to
- Follow the markdown format above
- Include
**Answer:**and**Solution:**markers for all questions
PYQ Content Guidelines
- Sections: Use
## Section Namefor 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
- Fork the repository
- Navigate to the appropriate company/category folder
- Edit the existing
.mdfile or create a new one - Follow the format above
- Commit your changes with a descriptive message
- 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:
- Fix typos and grammatical errors
- Add missing information
- Clarify confusing sections
- Add examples and screenshots
- Update outdated information
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.