Unanswered Questions
547 questions with no upvoted or accepted answers
23votes
0answers
761views
Multiplying big numbers using Karatsuba's method
The Karatsuba algorithm, first published in 1962, aims to speed up the multiplication of big numbers by reducing the number of 'single-digit-multiplications' involved.Because of its complexity (...
9votes
0answers
1kviews
Tree for PowerShell
For anyone reading this old question, this module has evolved and improved a lot since then. It has been fully rewritten in C# and uploaded to the PowerShell Gallery! If you would like to try it out:<...
7votes
0answers
200views
Modeling tabular structure in MSSQL to store data like Excel sheet applying Column inheritance
I've created this database structure to store tabular information (it's a simplification of my real structure but enough to show the point). In it I haveSheets and ...
6votes
0answers
116views
Chapter 8 Challenge: Add employee names to a department
The boring but exciting challenge:Using aHashMap andHashSet, create a text interface to allow a user to add employee names ...
6votes
0answers
1kviews
Recursive conversion from ExpandoObject to Dictionary<string, object> #2
Because my original question was lacking many details, I have been advised to ask a new question.I will repeat the important parts of the original question and add examples etc to hopefully make it ...
CommunityBot
- 1
6votes
0answers
145views
Android component animatable on its height
I'd like to have a code review for a component which is supposed to be animatable on its height. It's supposed to be a transitioning element.I find it quite laggy on my phone....
6votes
0answers
827views
Pseudo-parallel depth-first search
I'm writing a small program that generates a file containing an adjancency matrix, it then reads from that file, constructs a graph and does something like a parallel depth-first search (dfs) on it....
6votes
0answers
2kviews
Implement two level caching using spring's cache abstraction Cache and CacheManager
Details about spring's caching framework are here. When I was reading this link, I thought the composite cache mentioned there was one that used levels of caching based on the order given to the ...
6votes
0answers
464views
Implementing recursive filters with Haskell/Repa
I recently learned Haskell, and I am trying to apply it to the code I use in order to get a feeling for the language.I really like the Repa library since I manipulate a lot of multi-dimensional data....
5votes
0answers
115views
Dial's heap in Java for integer priority queues
(The entire project is here.)IntroI have this priority queue data structure for non-negative integer priority keys. I recall that it is called Dial's heap.CodeImplementation...
5votes
0answers
1kviews
Exception handling: using @JsonProperty value to make error message
If the validation inRestController fails, I need to handleMethodArgumentNotValidException and provide an errorMessage, that ...
5votes
0answers
71views
Fragment of code with Android MVP that checks login credentials via REST API
I'm learning MVP for Android and am wondering if that piece of code that I wrote is correct in terms of this pattern or maybe is completely messed up.I'm wondering if there can be return type other ...
5votes
0answers
182views
Hutton cipher implemented using recursive functions
Is there a way to rewrite these last 2 recursive functions with fewer arguments (preferably 2) while keeping them recursive?The entire code can be seen here: https://github.com/GirkovArpa/hutton-...
5votes
0answers
1kviews
Mahjong hand completeness checking algorithm
As a summer project, I have been working on a small-scale, console-based version of Mahjong (the Rummy-like hand completion game, and not the solitaire version). While having prior knowledge of the ...
5votes
0answers
2kviews
Mouse wheel scrolling for nested scrollable Swing components
By default, mouse wheel scrolling in Java Swing behaves differently than in web browsers. In Swing, when you have an inner scrollable component and an outer scrollable component, the mouse wheel ...







