This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function isBalanced($string) | |
{ | |
$str = preg_replace('([^\(\)])', '', $string); | |
if($str == ""){ | |
return TRUE; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pushPalindrome(&$found, $word){ | |
$str = strtolower($word); | |
if(strrev($str) === $str){ | |
$found[strtolower($str)] = $word; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isOdd(n){ | |
return (n & 1); | |
} | |
function getStepCount(n, c){ | |
var count = c | 0; | |
count++; | |
if(n < 1){ | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('xdebug.max_nesting_level', 10000000); | |
function isOdd($n) | |
{ | |
return ($n & 1); | |
} | |
function getStepCount($number, &$cache) | |
{ | |
$count = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UAJZYO8KBWPUPGIOOFC | |
LEPFWFCMB | |
XHDV1V6TOBW4 | |
YHIE1OU5ZUO13IHY | |
HJIRERR4NCFUSYZ4QC4G | |
6XSYSJ7O66O7JSYSX6 | |
LJC52ILQD5DF3X3ISC7 | |
C2ZVXULFIU | |
PHJTSZLZSTJHP | |
34R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UAJZYO8KBWPUPGIOOFC -- is not a palindrome. | |
LEPFWFCMB -- is not a palindrome. | |
XHDV1V6TOBW4 -- is not a palindrome. | |
YHIE1OU5ZUO13IHY -- is a mirrored string. | |
HJIRERR4NCFUSYZ4QC4G -- is not a palindrome. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5764 | |
9256 | |
5481 | |
1149 | |
6616 | |
405 | |
4451 | |
1839 | |
2691 | |
9936 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
709 | |
230 | |
709 | |
989 | |
304 | |
59 | |
318 | |
914 | |
932 | |
622 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 | |
41 | |
49 | |
51 | |
38 | |
87 | |
23 | |
54 | |
74 | |
78 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5764 -> 8 | |
9256 -> 6 | |
5481 -> 2 | |
1149 -> 4 | |
6616 -> 8 | |
405 -> 6 | |
4451 -> 6 | |
1839 -> 4 | |
2691 -> 2 | |
9936 -> 2 |
OlderNewer