Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arifulhb/coding-solutions

Coding Problems! Solutions in PHP
https://github.com/arifulhb/coding-solutions

algorithm-challenges algorithms codility codility-solutions data-structures hakerrank-solutions php php7 problems solutions

Last synced: about 1 month ago
JSON representation

Coding Problems! Solutions in PHP

Awesome Lists containing this project

README

        

# Coding Problems! Solutions in PHP
By [Ariful Haque](https://arifulhaque.com)

## Lesson 01: Binary Gap
Find longest sequence of zeros in binary representation of an integer.

A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N.

## Lesson 02: Calculate Parking Fee
A parking garage charges a $2.00 minimum fee to park for up to three hours.

The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours.

## Lesson 03: Find minimum cost of tickets
Find minimum cost of tickets required to buy for traveling on known days of the month `(1...30)`.