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 | |
$numbers = \range(0, 100000); | |
$result = []; | |
$start = \microtime(true); | |
foreach ($numbers as $number) { | |
$result[] = $number * 10; | |
} | |
$end = \microtime(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
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "USAGE:" | |
echo "" | |
echo "yaml2json.sh file.yaml" | |
echo "" | |
echo "it will generate the file.yaml.json" | |
exit 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
// Online C++ compiler to run C++ program online | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
vector<string> sol(long n) |
OlderNewer