I hereby claim:
- I am wmichelin on github.
- I am wmichelin (https://keybase.io/wmichelin) on keybase.
- I have a public key whose fingerprint is ACAE A294 C4D6 6491 02D9 66CE D504 067E F262 65B3
To claim this, I am signing this object:
<?php declare(strict_types=1); | |
/** | |
* Minimal Tree: Given a sorted (increasing order) array with unique integer elements, write an | |
* algorithm to create a binary search tree with minimal height. | |
*/ | |
class BinaryTreeNode | |
{ | |
private $value; | |
private $left; |
<?php | |
/** | |
* Imagine a robot sitting on the upper left corner of grid with r rows and c columns. | |
* The robot can only move in two directions, right and down, | |
* but certain cells are "off limits" such that the robot cannot step on them. | |
* Design an algorithm to find a path for the robot from the top left to the bottom right. | |
*/ | |
/** |
<?php | |
class Node | |
{ | |
/** | |
* @var Node | |
*/ | |
private $next = null; | |
/** |
<?php | |
function isPermutation($stringA, $stringB) | |
{ | |
$aMap = []; | |
$bMap = []; | |
foreach (str_split($stringA) as $char) { | |
isset($aMap[$char]) ? $aMap[$char]++ : $aMap[$char] = 1; | |
} |
I hereby claim:
To claim this, I am signing this object: