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.
See list of supported languages and platforms, check
Folks can also login using google (supported through Firebase) and bookmark questions and view their bookmarked questions.
Website: interview-questions
Questions are present inside posts folder, with their working solutions available in code folder
Sample coding question post hello-world.md
---
layout: post
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"
The project is build over jekyll
and ruby
Ruby setup is complex on macbook so it is recommended to use rbenv
or rvm
to manage ruby versions.
Check GitHub pages supported ruby versions here.
- Install
rbenv
brew install rbenv
- Install ruby latest version
rbenv install 3.3.4
- Set the local ruby version for the project
rbenv local 3.3.4
- Add rbenv ruby path to your shell configuration file (e.g.,
~/.bashrc
,~/.zshrc
)echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc source ~/.bashrc
To start the project
- Install bundles using
bundle install
- Serve the website (using local bundle files)
bundle exec jekyll serve