Thanks! That's one of the best descriptions of O() notation I've ever read.
However, can you please elaborate on the following example?
users_idx={}foruserinusersusers_idx[user[:group_id]]=...endforgroupingroupsuser_information=users_idx[group[:id]]# do something with group AND user informationend
What is the relation of users and groups in your example? Many-to-many or many-to-one?
What is saved in the index? All users who belong to a particular group? Or a single user who belongs to a particular group?
Thanks! That's one of the best descriptions of
O()
notation I've ever read.However, can you please elaborate on the following example?
What is the relation of users and groups in your example? Many-to-many or many-to-one?
What is saved in the index? All users who belong to a particular group? Or a single user who belongs to a particular group?
Thanks! The relation between users and groups here are very simple. Please check out the Gist:
gist.github.com/leandronsp/70f9eff...
Let me know if needed more explanation.
Cheers!