Top new questions this week:
|
I have downloaded the latest version of the Linux kernel and I want to perform thorough analysis on it. I want to start by eliminating comments from all the source and header files that belong to it. ...
|
Over the last year I have been programming on my own, mostly in Python. I haven't had any formal education, though I have followed some online instructions, and have been making things that interest ...
|
Yesterday I stumbled upon a Stack Overflow question that asked if it was possible to implement Tab-triggered auto-completion in a console application.
I thought that was an interesting idea, so I ...
|
Problem:
There are \$n\$ pigeons and \$m\$ grains. Pigeon \$i\$ eats a single grain every \$x_i\$ seconds. Find the time until all the grain is eaten.
Input:
A line with the ...
|
I am trying to create a builder for table tennis exercises. User Blindman67 helped me here. Now I'm trying to clean up the code before continuing to work on it.
Please tell me how to clean up the ...
|
I've no idea what to call this, so I called it Classify since that's how I use it.
Basically, the idea is to pass a Dictionary<TResult, Func<TValue, bool>> which is evaluated for an ...
|
I'm trying to brush up on my Python, so I'm going through some simple problems. Big concerns are style, though any algorithmic problems I'm open to suggestions on.
Basically you have an input file ...
|
Greatest hits from previous weeks:
|
The logic is simple, but I was wondering if anyone could help with rewriting the conditional logic. Also, the only error conditions I can think of are the sides should not be equal to or less than ...
|
During work, I was given this task: to group elements with similar properties in the array.
In general, the problem is as follows:
var list = [
{name: "1", lastname: "foo1", age: "16"},
...
|
Can you answer these?
|
I've created a simple pathfinder programme that receives its input from a very small .png file.
Example file here:
Here's a link to the file (note that the green pixel represents the start, the red ...
|
I have coded up the variable length integer encoding aka VLQ in Java. It works with any base in (1, 128]. I've implemented the usual encode/decode methods and also the addition and multiplication for ...
|
Can someone review this code, just have look if it's logically correct
or
If you may point me to a more simple and minimalist program
import java.util.ArrayList;
import java.util.Arrays;
import ...
|