Skip to content

rajat19/interview-questions

Repository files navigation

Interview Questions

Languages count Top Language License Last Commit

A collection of top interview questions asked in DSA rounds of companies. The project is build over jekyll.

The project contains solutions of the questions in multiple languages, the questions are also tagged with topics and companies.

Website: interview-questions

Screenshot

Screenshot

Questions are present inside posts folder, with their working solutions available in code folder

Sample coding question post hello-world.md

---
layout: post
author: Rajat Srivastava
title: Hello World
topics: string
langs: java py c cpp go js php cs rb rust scala kt
tc: O(1)
sc: O(1)
leetid: 0
---

Print Hello appended by input string

---

## Test Cases

**Input:** 
	
	(string) s = "World"

**Output:** 

	(string) "Hello World"

Setup:

The project is build over jekyll

To start the project

  1. Install ruby
  2. Set config for bundle so that it installs for current project only
    bundle config set --local path 'vendor/bundle'
  3. Install bundles using
    bundle install
  4. Serve the website (using local bundle files)
    bundle exec jekyll serve

TODO:

  1. Add solutions in most major languages
  2. Add main method in solutions so that we can test them out
  3. Run solutions using test.sh
  4. Add company tags
  5. Add GFG, Leetcode, Interviewbit etc. links for preparation and testing out code