This repository contains tasks and submissions for weekly Data Structures & Algorithms challenges
The link to the question of the week can be found in the link.txt
file of the working folder. i.e.
-
navigate to the folder that corresponds to the name of the question eg
data-structure-algorithms/leetcode/merge-sorted-array
-
open the
link.txt
file in that folder. The link to the question is provided here.
---The link will also be sent to the channel before the challenge starts.
-
Use the question link provided to navigate to the question. The question will be on
leetcode
,Hackerrank
orcodility
. -
Solve the challenge on the respective website eg
leetcode
-
After solving, copy your code from the website and create a new file using your IDE
eg PHPStorm, VSCode etc
. Your file extension should correspond to the language used.
To add a submission of a task to the repository, take the following steps.
-
Clone this repository (Ignore this step if you already cloned the repository).
-
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 eg
merge-sorted-array
. -
Make your submission inside that folder. The name of your file containing your submission should be your name, separated by hyphens. the langiage used. E.g. if name is John Doe and language is PHP, name of the file should be
john-doe.php
. If language is Javascript, file should bejohn-doe.js
etc. -
Ensure you pull recent changes just before pushing your submission
-
You should push directly. You should NOT create a PR
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 can also include your solve time as a comment