Skip to content

Instantly share code, notes, and snippets.

<?php
$numbers = \range(0, 100000);
$result = [];
$start = \microtime(true);
foreach ($numbers as $number) {
$result[] = $number * 10;
}
$end = \microtime(true);
#!/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
@Raffaello
Raffaello / fizzfuzztestQ3.cpp
Last active March 27, 2023 01:28
FizzFuzzPrimeQ3 test
// Online C++ compiler to run C++ program online
#include <iostream>
#include <string>
#include <vector>
using namespace std;
vector<string> sol(long n)