Hi,
Could anyone suggest the best data structure that can be used in C to represent a book? i.e. an alphabet is contained in a paragraph, a paragraph is contained in a page and a page is in a book.
I mean if the user says, given a page and given a paragraph, how many 'a's are there in it, we'll be able to find the answer.
It would be great if someone could comment on time/space complexity w.r.t C.
Appreciate your guidance.
Thanks,
Angshu