This repository contains submissions for tasks from our weekly Data Structures & Algorithms class.
To add a submission of a task to the repository, take the following steps.
- Navigate to the website directory from the root of the repository. This can be
leetcode
,codility
orhackerrank
- Find the folder that corresponds to the name of the question.
- Make your submission inside that folder. The name of your file containing your submission should be your name, separated by hyphens. E.g.
john-doe
To make your submissions easier to understand by people that want to check it, it would be helpful to add comments explaining it. You should also add indicate the time and space complexities of your submissions.
You may drop questions from any website including but not limited to Leetcode, HackerRank and Codility. To create a question eligible for submissions, follow the following steps.
- Navigate to the leetcode directory from the root of the repository
- Create and Navigate to the folder that corresponds to the topic you are dropping questions for. E.g.
Linked Lists
,String Matching and Parsing
. - Create and navigate to the folder that corresponds to the name of the question. This can be gotten from the url to the question. E.g. if the url to the question is
https://leetcode.com/problems/merge-sorted-array/
, the name should bemerge-sorted-array
. Submissions to the question would be made to this folder. - Create a
link.txt
file that contains the url to the question.
- Navigate to the hackerrank directory from the root of the repository
- Create and Navigate to the folder that corresponds to the topic you are dropping question for. E.g.
Insertion Sort
,Arrays
. - Create and navigate to the folder that corresponds to the name of the question. This can be gotten from the url to the question. E.g. if the url to the question is
https://www.hackerrank.com/challenges/insertionsort2/problem
, the name should beinsertionsort2
. Submissions to the question would be made to this folder. - Create a
link.txt
file that contains the url to the question.
- Navigate to the hackerearth directory from the root of the repository
- Create and Navigate to the folder that corresponds to the topic you are dropping questions for. E.g.
Merge Sort
,Heap Sort
. - Create and navigate to the folder that corresponds to the name of the question. This can be gotten from the url to the question. E.g. if the url to the question is
https://www.hackerearth.com/practice/algorithms/sorting/merge-sort/practice-problems/algorithm/cheap-thrills/
, the name should becheap-thrills
. Submissions to the question would be made to this folder. - Create a
link.txt
file that contains the url to the question.
We would love to see your approaches to our problems. To contribute your solution to any of the problems, create a pull request following the Submission section of this page. Your code should be commented with explanations / the basic approach to make it easier to understand by people that want to go through it.