Data Structure and Algorithm explanations with Implementations by PHP
Data Structure and Algorithm explanations with Implementations by PHP
You need to have basic understanding of the PHP programming language to proceed with the codes from this repository.
Graph Algorithms
Dynamic Programming
Greedy Algorithms
String Algorithms
Number Theory
Computational Geometry
Game Theory
Others
PHP is a dynamic language with Weak Typing. That means you don't have to declare the type of a variable ahead of time. The type will get determined automatically while the program is being processed. That also means that variables are not "bound" to a specific data type.:
$foo = "x"; // foo contains a string
$foo = $foo + 2; // foo concatenates with a number
echo $foo; PHP supports the following data types:
Four scalar types:
Four compound types:
Two special types
Algorithms in plain English: time complexity and Big-O notation
If you have PHP installed in your machine you can easily run a PHP file using:
php file_name.phpIf php command not working in your terminal/command line, then you might need to add it to your environment Path.
No open issues yet, or sync has not completed.