Last active
June 9, 2018 08:55
-
-
Save navidanindya/fc1c2c6c25c84392e62b4a9886f16386 to your computer and use it in GitHub Desktop.
Get unique characters from two strings and return a sorted substring (PHP) [ Link: https://repl.it/@nealtheguitaris/PuzzlingVengefulRobot ]
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 getUniqueSortedChars ($a, $b) { | |
return count_chars($a.$b,3); | |
} | |
echo getUniqueSortedChars('aaaabbbdddccc','aadfafiseitaabbbss')."\n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment