Rupesh Krishna Jha Posted on Mar 7, 2019 How to implement blocking and following user functionality in node.js as backend ?? #node #webdev #mean #career Top comments (3) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Theofanis Despoudis Theofanis Despoudis Theofanis Despoudis Follow Senior Software Engineer @wpengine, Experienced mentor @codeimentor, Technical Writer @fixate.io, Book author Location Ireland Work Senior Software Engineer at WP Engine Joined Jun 19, 2017 • Mar 9 '19 Dropdown menu Copy link Hide Use a Set data structure ideally using Redis for checking membership, for example each user has a set of user ids as friends and a set of user ids as enemies. Now all the operations would involve using union find or intersection operations. Collapse Expand Rupesh Krishna Jha Rupesh Krishna Jha Rupesh Krishna Jha Follow Aspiring Full Stack Web developer and Open Source Contributor. Location Bhubaneswar,India Education B.Tech(CSE) Joined Jun 23, 2018 • Mar 9 '19 Dropdown menu Copy link Hide Great idea !! awesome , thanks a lot man ! .. I got it . Collapse Expand alkont alkont alkont Follow Joined Jan 27, 2021 • Jan 27 '21 Dropdown menu Copy link Hide is there a way to do so with emails, in order to block a received mail? Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
Use a Set data structure ideally using Redis for checking membership, for example each user has a set of user ids as friends and a set of user ids as enemies. Now all the operations would involve using union find or intersection operations.
Great idea !! awesome , thanks a lot man ! ..
I got it .
is there a way to do so with emails, in order to block a received mail?