Interning A String

While reading this blog I came across a new concept called “string interning”. Lately, I am making a habit of writing a blog on any new concept that I come across on the internet or other places. So that I don’t forget new things that I learn. I also use my twitter account for posting useful links etc.

Continue reading “Interning A String”

Interesting Algorithms and Data Structures Links

1. Disjoint Set Union (Union Find): HackerEarth

Complexity:

O(log*n) with Union with path compression, O(logn) with keeping track of size of subsets, O(n) with keeping root as the parent instead of root(i) = i, O(n^2) with setting all the elements of a subset a same value.

Continue reading “Interesting Algorithms and Data Structures Links”

Running Raspberry Pi For The First Time – Using Laptop’s Display, Keyboard & Touchpad (no HDMI cable requird)

Feeling really awesome after being able to successfully run Raspberry Pi. After struggling for 4-5 hours, breaking my wifi hotspot(no solution till I format my laptop. A bug in Fedora), reading many blogs etc. Finally! I am able to run it.

Screenshot from 2015-07-04 18:05:33

Continue reading “Running Raspberry Pi For The First Time – Using Laptop’s Display, Keyboard & Touchpad (no HDMI cable requird)”

Python in programming contests

Robert Kozikowski's blog

Thanks to recent addition of Python to the Topcoder python is the first language besides C++, Java and C# available on all major programming competitions (I did’t count ACM, because I can’t compete in it after finishing university).
I’m going to write about my perspective on using Python in programming contests.
Some of the points are targeted at people who didn’t use python at all yet, so for people knowing python they may sound basic.
Vexorian already had written a good piece about python in programming contests.
I am going to extend some arguments, disagree with some and provide some new ones. I’ll start with the things I like and end on the things I don’t like.

Python code during programming competitions resembles “real world” better

Common complaint about programming contests is that people write throwaway C++ code, while outside of programming competitions C++ is used to write highly…

View original post 1,324 more words

Beginning Open Source Contributions to Python

Ravi Sinha's Weblog

Open Source is a great way to learn and grow – to look at huge codebases written by world class developers, and to be mentored by them when you try to write a patch for an existing issue. You learn the entire workflow of starting a patch to having it committed to the central source code repository, which can be a very enriching experience. The discussions that accompany the process are also priceless in terms of how much you learn about software development as well as practicality.

Earlier this year I had decided that I would start with contributing to the Python project. Being one of my favorite languages with a vibrant, large and intellectual community (and also increasing industry support – check out the sponsors at PyCon 2013), it was a natural choice. I might decide to get involved with the Scala community at a later point…

View original post 627 more words