drago18121996 (68)in #ita • last monthCountexport function nucleotideCounts(lett:string) { const res: Record = { A: 0, C: 0, G: 0, T: 0,}; // ricordarsi la…drago18121996 (68)in #ita • last monthBinary searchexport function find(haystack: number[], needle: number, counter: number = 0): number | never { const maxNumber =…drago18121996 (68)in #ita • last monthHandshakelet arr : string[] =["wink" ,"double blink","close your eyes", "jump"]; export function commands(num: number):…drago18121996 (68)in #ita • last monthLengthexport function encode(text:string) { let res = ""; let num = 1; for(let i=0; idrago18121996 (68)in #ita • last monthBasesexport function convert( digits: number[], inputBase: number, outputBase: number ): number[] { let res: number[]…drago18121996 (68)in #ita • last monthSeriesexport class Series { series: string; constructor(series: string) { this.series = series; if(this.series.length…drago18121996 (68)in #ita • 2 months agoAffine{ let lower = phrase.toLowerCase().replaceAll(' ', ''); let alphabet =…drago18121996 (68)in #ita • 2 months agoAffinefunction encode(string $text, int $num1, int $num2): string{ $res = ""; $alphabet = range('a', 'z'); $lowerString =…drago18121996 (68)in #ita • 2 months agoSumdeclare(strict_types=1); function sumOfMultiples(int $number, array $multiples): int{ $res = 1; $setres = [];…drago18121996 (68)in #ita • 3 months agoETLexport function transform(old: {[key: string]: string[]}) { let expected: {[key: string]: number} = {}; for(const…drago18121996 (68)in #ita • 3 months agoDiamontimport java.util.*; class DiamondPrinter { String repeatAllSegm(int count){drago18121996 (68)in #ita • 3 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 • 3 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 • 3 months agoAngramexport class Anagram { input : string; constructor(input: string) { this.input = input.toLowerCase(); } public…drago18121996 (68)in #ita • 3 months agoComplex informationexport class ComplexNumber { r : number; i : number; constructor(real: number, imaginary: number) { this.r =…drago18121996 (68)in #ita • 4 months agoBobusing System; using System.Text.RegularExpressions; public static class Bob { public static string…drago18121996 (68)in #ita • 4 months agoPHPdeclare(strict_types=1); function steps(int $number): int{ if($number 1){ if($number % 2 ==0){ $number /= 2; }…drago18121996 (68)in #ita • 4 months agoAccumulatedeclare(strict_types=1); function accumulate(array $input, callable $accumulator): array{ $result = []; for($i=0; $idrago18121996 (68)in #ita • 4 months agoHandshakeexport const commands = (numb) => { let result = []; if(numb & 1) result.push('wink'); if(numb & 2)…drago18121996 (68)in #ita • 4 months agoGrainsexport const square = (num) => { if(num 64) throw new Error('square must be between 1 and 64'); return…