India now accounts for about 10% of the global trade in Bitcoin. It is quite interesting to note that even though the Indian government has not granted recognition to the cryptocurrency, it has also not declared it to be illegal. Use of Bitcoin has witnessed an upsurge in India. This can be attributed to many … Continue reading How are Bitcoin profits taxed?
Recent efforts by the Indian government to weed out black money from the economy and increase the tax base have called for a paradigm shift in the way people in India choose to save their money. The pumping out of cash from the economy has brought the citizen to a point where he is considering … Continue reading Hedge Funds v/s Mutual Funds
What makes this question special is this tweet. https://twitter.com/mxcl/status/608682016205344768?lang=en He questions the interview process, I am with him. But whatever it is, it is. Question : Invert a binary tree. Return the root of the inverted tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 … Continue reading Invert a Binary Tree
Data Structure and Algorithms resource guide.
Here are the sites I have experience with and my thoughts
- LeetCode is excellent because there are many problems and explanations. Furthermore the problems without explanations have answers and commented solutions in the discussion boards. It is the best online judge in my (limited) experience.
- Cracking the Coding Interview has many questions and detailed answers in Java.
- Data Structures and Algorithms Made Easy in Java is excellent. Sure there are many, many, many typos. But it has so many code samples for each of the data structures, explanations from worse (brute force) to best (optimized) along with advantages and disadvantages of the many possible solutions.
View original post 35 more words
Given two strings which represent different version releases of a software, print -1, 1 or 0 depending on the order of the releases. If version1 was released after version2 print 1, If version1 was released before version2 print -1, otherwise print 0. Assumptions granted : Strings may only contain digits and the '.'(dot) character … Continue reading Compare Versions
A clean and concise guide to Data Science.
Kaggle is a Data Science community where thousands of Data Scientists compete to solve complex data problems.
In this article we are going to see how to go through a Kaggle competition step by step.
The contest explored here is the San Francisco Crime Classification contest. The goal is to classify a crime occurrence knowing the time and place it happened.
View original post 916 more words
Question : Write a program that takes a 64-bit word, output the reverse of that word. I would urge you to minimize the window and try to solve this question on your own first. Method - 1 Brute Force Solution Simply apply the bitswap method we used earlier on all the extreme bits. Time … Continue reading 3. Reverse Bits