Skip to content

swayoleg/hackerrankPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Preparation Kit for HackerRank

GitHub license

This repository is structured to help you prepare for coding challenges. Each week, you'll find tasks to solve, along with necessary information and tests.

It includes hackerrank solition of the following challanges in 3 month preparation kit (3MonthPreparationKit):

Directory Structure example


[3MonthPreparationKit]
    - [Week13]
        -[1_FindTheRunningMedian]
            - solution.php
            - info.txt
            - test.php
            - [testcases]
                - 1-input.txt
                - 1-output.txt
                - 2-input.txt
                - 2-output.txt
                - 3-input.txt
                - 3-output.txt
        
    [OtherTasks]
    - 1
        - solutionsInfo.md
        - task.txt
        - task1_solution1.php
        - task1_solution2.php
        - task1_solution3.php
        - task2_solution1.php
        - task2_solution2.php
        - task2_solution3.php

File Descriptions

  • solution.php: The file you can copy-paste into the HackerRank editor and run the code.
  • info.txt: Information about what you need to learn to solve the task.
  • test.php: The code with data to test and compare if it works correctly. (In the future, this might be done with PHPUnit).
  • testcases/: Contains input and expected output files for tests. You will find there %number_of_case%-input.txt and %number_of_case%-output.txt files. The first one is the input data for the test.php file and the second one is the expected output.

Some of the tasks doesnt have info or test files - feel free to add and make PR.

It also has 1 Week preparation kit 1WeekPreparationKit whith the following tasks

To run test navigate to folder and run php test.php Example:

cd 3MonthPreparationKit/Week13/1_FindTheRunningMedian
php test.php

And for sure we have other similar tasks from different sources. In folder OtherTasks you can find interesting tasks from different interviews and coding challenges.

At OtherTasks you can find interesting tasks from different interviews and coding challenges.

Coffee

If you want to by me a coffee - just do it:

"Buy Me A Coffee"

About

Solution for hacker rank preparation kits in php

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published