Ugrás a fő tartalomra
🔒 Előnézet mód. Az első tizenöt Foundations lecke ingyenes; ez Pro. Indíts 7 napos trial-t, hogy feloldd a szerkesztőt, az AI tippeket és a tananyag többi részét. Kártya szükséges, bármikor lemondhatod a Dashboard-ban.7 napos trial indítása →
← KurzusokInterview Prep4. modul · Dinamikus programozás és kupacPróbáld ki: előtag automatikus kiegészítésewrite55 / 104
+150 XP
Feladat🌐 shown in EN
📝 **Question:** Implement `Trie` with `insert(word)` and `starts_with(prefix)` returning sorted matches. Insert ['cat','car','cart','dog']. Print `starts_with('ca')`. 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
✏️ Írd ide a kódodat
🐍
Python betöltése...
Egyszeri letöltés (~1 MB). Utána azonnal fut.
📊 Eredmény
Kattints a Futtatásra az eredmény megtekintéséhez...