Afişează mesaje
Pagini: [1]
1  Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Heaps shortlist : Iunie 17, 2015, 11:55:49
I'd solve the Young Tableau problem similar to the merge N arrays problem, but with a twist: starting with position (0,0), at each step, I remove the min element at (i,j) and add into my heap two more items - elements with positions (i+1,j) and (i,j+1). O(K logK), if this is correct.
2  Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Heaps shortlist : Iunie 17, 2015, 10:45:02
Isn't 7 solved with a Young Tableau too ?
Pagini: [1]
Powered by SMF 1.1.19 | SMF © 2006-2013, Simple Machines