This file contains hidden or 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
-- Write only the SQL statement that solves the problem and nothing else. | |
SELECT name from employees WHERE (id NOT IN (SELECT managerId FROM employees WHERE (managerId IS NOT NULL))) |
This file contains hidden or 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
-- Write only the SQL statement that solves the problem and nothing else. | |
SELECT count(firstname) as total from Students WHERE firstName = "John" |
This file contains hidden or 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 | |
class Palindrome | |
{ | |
public static function isPalindrome($word) | |
{ | |
$temp = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $word)); | |
if(strrev($temp)==$temp) | |
return TRUE; | |
else | |
return FALSE; |
This file contains hidden or 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 | |
class Pipeline | |
{ | |
public static function make_pipeline() | |
{ | |
$func_list = func_get_args(); | |
$result = function($arg) use ($func_list) | |
{ | |
foreach($func_list as $funcs) |