drago18121996 (68)in #ita • 20 days agoArmstrongdeclare(strict_types=1); function isArmstrongNumber(int $number): bool { $res = 0; $str_cr = (string)$number;…drago18121996 (68)in #ita • last monthMatrixusing System; using System.Collections.Generic; public class Matrix{ public string input; public Matrix(string…drago18121996 (68)in #ita • last monthBottleusing System; using System.Collections.Generic; public static class BottleSong{ static Dictionary numWord = new Dictionary{drago18121996 (68)in #ita • 2 months agoEdin il sovrano...drago18121996 (68)in #ita • 2 months agoWindow systemclass ProgramWindow{ public $x;drago18121996 (68)in #ita • 4 months agoCountexport function nucleotideCounts(lett:string) { const res: Record = { A: 0, C: 0, G: 0, T: 0,}; // ricordarsi la…drago18121996 (68)in #ita • 4 months agoBinary searchexport function find(haystack: number[], needle: number, counter: number = 0): number | never { const maxNumber =…drago18121996 (68)in #ita • 4 months agoHandshakelet arr : string[] =["wink" ,"double blink","close your eyes", "jump"]; export function commands(num: number):…drago18121996 (68)in #ita • 4 months agoLengthexport function encode(text:string) { let res = ""; let num = 1; for(let i=0; idrago18121996 (68)in #ita • 4 months agoBasesexport function convert( digits: number[], inputBase: number, outputBase: number ): number[] { let res: number[]…drago18121996 (68)in #ita • 4 months agoSeriesexport class Series { series: string; constructor(series: string) { this.series = series; if(this.series.length…drago18121996 (68)in #ita • 5 months agoAffine{ let lower = phrase.toLowerCase().replaceAll(' ', ''); let alphabet =…drago18121996 (68)in #ita • 5 months agoAffinefunction encode(string $text, int $num1, int $num2): string{ $res = ""; $alphabet = range('a', 'z'); $lowerString =…drago18121996 (68)in #ita • 5 months agoSumdeclare(strict_types=1); function sumOfMultiples(int $number, array $multiples): int{ $res = 1; $setres = [];…drago18121996 (68)in #ita • 5 months agoETLexport function transform(old: {[key: string]: string[]}) { let expected: {[key: string]: number} = {}; for(const…drago18121996 (68)in #ita • 5 months agoDiamontimport java.util.*; class DiamondPrinter { String repeatAllSegm(int count){drago18121996 (68)in #ita • 6 months agoLindergarten// // This is only a SKELETON file for the 'Kindergarten Garden' exercise. // It's been provided as a convenience to…drago18121996 (68)in #ita • 6 months agoGarden// // This is only a SKELETON file for the 'Kindergarten Garden' exercise. // It's been provided as a convenience to…drago18121996 (68)in #ita • 6 months agoAngramexport class Anagram { input : string; constructor(input: string) { this.input = input.toLowerCase(); } public…drago18121996 (68)in #ita • 6 months agoComplex informationexport class ComplexNumber { r : number; i : number; constructor(real: number, imaginary: number) { this.r =…