Top new questions this week:
|
Starting point
I kind-of inherited a VBA project at work that consists of a bunch of Word document templates that provide users with the tools they need to create documents according to company ...
|
I have been given following problem to solve:
If the integer is divisible by 3, return the string "Java".
If the integer is divisible by 3 and divisible by 4, return the string "Coffee"
If the ...
|
Haven't put one of these together since college. How does this look overall?
public class HashTable<T, TU>
{
private LinkedList<Tuple<T, TU>>[] _items;
private ...
|
I am working on this assignment to draw the flag of Liberia for my essentials of computer programming class.
I finished it but had extra time to kill and noticed that a couple similar blocks of ...
|
I'm trying to learn the Repository pattern, and I have some questions regarding my current understanding of it.
All the examples I've been able to find of database repositories use ORMs, but for a ...
|
I'm trying to write a multiple functions memoizator, I talked about it here.
The main problem is to create a container containing different and heterogenous functions.
I found a working solution, ...
|
So I got sick of several things about the way TryParse works. I implemented a generic ParseOrDefault function using reflection. It appears to work as expected, but I'm not fool enough to say my code ...
|
Greatest hits from previous weeks:
|
Is there a better way to check whether a number is a power of 10? This is what I've implemented:
public class PowersOfTen {
public static boolean isPowerOfTen(long input) {
if ...
|
Is this a good approach or is there some other solution that I am not aware of?
//C++ program to count number of words in text file
#include<fstream>
#include<iostream>
...
|
Can you answer these?
|
I have a situation where I'd like to wrap up some plain C handles into a class, with a destructor and other niceties, in C++. I would like the wrapper class to have the exact same size as the handle, ...
|
I am using this AsyncTask class to update two different tables on SQL Server. So far this code works fine, I'm interested in a better and more sufficient code structure for this class, specially in ...
|
I have a recursive algorithm that inserts nodes into a trie data structure but it seems to be running not well and takes over 10 mins to complete on a data set of about 1 million. All nodes contain a ...
|