drago18121996 (68)in #ita • 3 days agoAffinefunction encode(string $text, int $num1, int $num2): string{ $res = ""; $alphabet = range('a', 'z'); $lowerString =…drago18121996 (68)in #ita • 5 days agoSumdeclare(strict_types=1); function sumOfMultiples(int $number, array $multiples): int{ $res = 1; $setres = [];…drago18121996 (68)in #ita • 18 days agoETLexport function transform(old: {[key: string]: string[]}) { let expected: {[key: string]: number} = {}; for(const…drago18121996 (68)in #ita • 19 days agoDiamontimport java.util.*; class DiamondPrinter { String repeatAllSegm(int count){drago18121996 (68)in #ita • last monthLindergarten// // This is only a SKELETON file for the 'Kindergarten Garden' exercise. // It's been provided as a convenience to…drago18121996 (68)in #ita • last monthGarden// // This is only a SKELETON file for the 'Kindergarten Garden' exercise. // It's been provided as a convenience to…drago18121996 (68)in #ita • last monthAngramexport class Anagram { input : string; constructor(input: string) { this.input = input.toLowerCase(); } public…drago18121996 (68)in #ita • last monthComplex informationexport class ComplexNumber { r : number; i : number; constructor(real: number, imaginary: number) { this.r =…drago18121996 (68)in #ita • 2 months agoBobusing System; using System.Text.RegularExpressions; public static class Bob { public static string…drago18121996 (68)in #ita • 2 months agoPHPdeclare(strict_types=1); function steps(int $number): int{ if($number 1){ if($number % 2 ==0){ $number /= 2; }…drago18121996 (68)in #ita • 2 months agoAccumulatedeclare(strict_types=1); function accumulate(array $input, callable $accumulator): array{ $result = []; for($i=0; $idrago18121996 (68)in #ita • 2 months agoHandshakeexport const commands = (numb) => { let result = []; if(numb & 1) result.push('wink'); if(numb & 2)…drago18121996 (68)in #ita • 2 months agoGrainsexport const square = (num) => { if(num 64) throw new Error('square must be between 1 and 64'); return…drago18121996 (68)in #ita • 2 months agoComplex Numbers// // This is only a SKELETON file for the 'Complex Numbers' exercise. It's been provided as a // convenience to get…drago18121996 (68)in #ita • 2 months agoBobexport const hey = (message) => { let new_mess = message.replace(/[^a-zA-Z]/g, '').trim(); let message_trim =…drago18121996 (68)in #ita • 2 months agoSchoolclass School: def init (self): self.student ={} self.history = [] def student_exists(self, name):drago18121996 (68)in #ita • 2 months agoSolutionexport const colorCode = (color) => COLORS.indexOf(color); export const COLORS = ["black", "brown", "red"…drago18121996 (68)in #ita • 2 months agoStrings!import string letters = string.ascii_lowercase consonant = ''.join([letter for letter in letters if letter in…drago18121996 (68)in #ita • 2 months agoString inverseusing System; public static class ReverseString { public static string Reverse(string input) { char [] cArray =…drago18121996 (68)in #ita • 3 months agoLedgerusing System; using System.Collections.Generic; using System.Globalization; using System.Linq; public class…