Interview Questions

169. design a data structure for a DNS server

Microsoft Interview Questions and Answers


(Continued from previous question...)

169. design a data structure for a DNS server

Question:
design a data structure for a DNS server


maybe an answer1:


Multiple level Distributed Hash Tables based on the frequency . The entries should also have freshness factor in them .


maybe an answer2:


Simply use n- ary tree;

struct Treenode
{
char *s;
Treenode *parent,leftmostchid,sibling;
};

(Continued on next question...)

Other Interview Questions