Maglumatlarym ýüklenýärmi?
Ýok. Adaty ulanyşda bu gural brauzeriňizde işleýär, girizen maglumatyňyz serwere ugradylmaýar.
Gurallyň adyny, formaty ýa-da işi ýazyň
Trie Autocomplete: animasiýa. Frontend üçin animasiýaly algoritmler: tertipleme, gözleg, debounce we throttle, event loop, wirtual DOM, keş, trie we ýol gözlegi. Brauzeriňizde çalt, gizlin we ýönekeý.
Aşakdaky guralyň düwmeleri we tekstleri heniz iňlis dilinde.
Loading animation...
Trie Autocomplete: animasiýa — AllConvertTools.uz gurallar toplumynyň bir bölegi: işleýän gural uzyn düşündirişlerden öň duran çalt we anyk sahypa.
Ýok. Adaty ulanyşda bu gural brauzeriňizde işleýär, girizen maglumatyňyz serwere ugradylmaýar.
Ýok. Esasy konwerter mugt we agza bolmazdan derrew işleýär.
Täzeden gözlemän işiňize dowam ediň.
A trie stores words letter by letter, so words that share a prefix share a path. A star (*) marks the end of a word.
class Trie {constructor() { this.root = { children: {}, end: false }; }insert(word) {let node = this.root;for (const ch of word) {node = node.children[ch] ??= { children: {}, end: false };}node.end = true;}suggest(prefix) {let node = this.root;for (const ch of prefix) {node = node.children[ch];if (!node) return [];}return collect(node, prefix); // every node with end: true is a word}}
Tip: use the arrow keys to step and the space bar to play or pause.