Home / Programming / Code Snippets / Java Snips

Java Snips

Programming Resources Links

Programming Resources Links, Programming resources, useful programs links

Codechef’s resource compilation: https://discuss.codechef.com/questions/48877/data-structures-and-algorithms Getting started with C++ STL: https://sites.google.com/site/smilitude/stl https://www.hackerrank.com/domains/cpp/stl http://acm.hust.edu.cn/vjudge/contest/view.action?cid=120013#overview Extended Euclid: https://web.facebook.com/groups/341771679363942/permalink/498491447025297/ nCr mod m: For non-prime m <= 10^4 and n, r <= 10^5 – https://web.facebook.com/groups/341771679363942/permalink/497216540486121/ For n, r, m <= 10^9 and Squarefree nonprime m with small prime factors – https://web.facebook.com/groups/341771679363942/permalink/498818073659301/ For n, r <= …

Read More »

Multicast Using Java Sockets

socket pogram

Java Socket APIs enable network communication where client-server communication can be established in three ways: one-to-one communication (client-server), one-to-all communication (broadcast), and one-to-many communication (multicast).   Basics: IPv4 uses 32-bit addressing and can be supported about 4.3 billion devices, IPv6 uses 64-bit addressing that can support about 3.4e104 devices! However, IPv4 is …

Read More »