Tagged Questions
1
vote
2answers
226 views
Spotify's “Reversed Binary Numbers” Problem
I wrote some Java code for Spotify's Reversed Binary Numbers puzzle and I tested it on my machine and I am almost positive that it behaves as expected. However, when I send it to puzzle AT spotify.com ...
1
vote
0answers
454 views
Android - get int array from database Cursor
I find this code quite ugly, but in fact, I don't see any finest way to achieve the goal.
private static final String TABLE_NAME = "table_name";
private static final String[] allNeededColumns = ...
5
votes
2answers
217 views
What can be done to improve a recursive method?
So I was experimenting with lists, sets, and finally maps when I spotted a pattern in my code to make it recursive. Now I haven't used recursion much in the past or at work and I was very excited to ...