Pergunta de entrevista da empresa Uber

One medium and one hard questions.. Graphs, Trees related questions. Given an array, write code to convert it into b-tree and again write code to convert into array format.