Clone is Free, press the Star also is free!
composer require karpovigorok/leetcode
src
directory contain Solution classes
result
directory contain examples of use
<?php
use Leetcode\CountPrimes\Solution;
$solution = new Solution();
echo $solution->countPrimes(499979) . PHP_EOL;
Difficulty: Easy
- Two Sum php and js
- Two Sum II - Input array is sorted
- Reverse Integer
- Palindrome Number php
- Palindrome Number js
- Palindrome Linked List
- Valid Palindrome
- Valid Palindrome II
- Roman to Integer
- Longest Common Prefix
- Count Primes
- Sqrt(x)
- Valid Parentheses
- Implement strStr()
- Merge Sorted Array
- Remove Duplicates from Sorted Array
- Min Stack
- Merge Two Sorted Lists
- Search Insert Position
- First Bad Version
- Guess Number Higher or Lower
- Maximum Subarray
- Majority Element
Difficulty: Medium