Sobes.tech
Senior

// Implementujte automatické dopĺňanie pre filmy: // zobrazte top-3 zhody podľa abecedy pre prvé 3+ zadané písmená. // ["macarthur", "interstellar", "intrusion", "macao", "into the abyss", "internship"] // me -> [] // mac -> ["macao", "macarthur", "machinist"] // int -> ["internship", "interstellar", "into the abyss"] // interstellar -> ["interstellar"] // intr -> ["intrusion"] // intrusion -> ["intrusion"] // into -> ["into the abyss"] // stellaris -> [] package main func main() {}

sobes.tech AI

Odpoveď od AI

Tento kód implementuje automatické dopĺňanie na základe prvých 3 alebo viac písmen a vracia maximálne tri zhody v abecednom poradí.