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 | |
/** | |
* Instructions: | |
* | |
* Given the above JSON, build a simple PHP script to import it. | |
* | |
* Your script should create two variables: | |
* | |
* - a comma-separated list of email addresses | |
* - the original data, sorted by age descending, with a new field on each record |
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
def getMax(a, b, c): | |
max = a; | |
if a > b: | |
if b > c: | |
max = a; | |
if c > a: | |
max = c; | |
if b > a: | |
if b > c: | |
max = b; |