Top new questions this week:
|
This is the fifth project in my CS1 class. It's a bit more drab than my past projects, so my titles are getting worse unfortunately. :(
Write a program that computes the annual after-tax cost of …
|
Inspired by Nested for-loop ASCII art, I looked at building a more complicated ASCII art than just the normal 'diamond' and 'triangle' variations that crop up occasionally here.
The challenge: …
|
This is a multiplayer bowling simulator in Ruby. It allows for variable skill levels, and produces weighted random results for each roll based on those skill settings. The methods are grouped in four …
|
I was working on a problem from Coderbyte. The challenge was to write a function that takes in a string and returns the longest word in the string. If two words are the same size then it asks to …
|
The following is a problem I found on this wiki. What can I do to optimize my algorithm, and make this code more C++11?
Write a program to discover the answer to this puzzle:"Let's say men
and …
|
The problem
ConcurrentHashMap provides very weak consistency guarantees w.r.t iteration:
guaranteed to traverse elements as they existed upon construction
exactly once, and may (but are not …
|
I'm making my first app in Swift: a Piano app. I'd like to get your feedback especially about how I can make codes shorter. I maybe have to use arrays and loops and something, and searched by myself …
|
Greatest hits from previous weeks:
|
This is my first attempt at putting the conceptual knowledge I've gained about graphs into code. When searching for examples they all seem overly complicated, and searching for a tutorial or …
|
I am using ExcelDataReader to import an excel file to a dataset. Example Excel table below:
//ID Name Display Order Active
//1 John 1 1
ID, DisplayOrder and …
|
Can you answer these?
|
I run a coding dojo at work. For one session I'm to showing that you can use a kata to get into a new language.
I'm using the FizzBuzz Kata to to show F# (and JavaScript) because it is short. The …
|
This is my first time using Unity so bear with me for a moment. I have a sample Visual Studio 2012 solution with 4 projects (but only two of these projects will be used with Unity). This is the …
|
I was disappointed using GCM, so I'll use long polling for crucial parts. Following my approach:
protected void onCreate(Bundle savedInstanceState) {
new LongPolling().execute();
}
private …
|