Top new questions this week:
|
I was searching for a implementation of a Linked List with the same power as a native List.
I wanted functionality closer to a List. The System.Collections.Generic.LinkedList misses some methods I'm ...
|
I am currently using an implementation of the A* algorithm described here.
Currently, when I run my algorithm, my IDE lags horribly and the .exe generated also lags terribly. Using the CPU analyzer, ...
|
Randal Schwartz stole LISP's decorate-sort-undecorate idiom when he came up with what we'd later call the Schwartzian Transform. With all of my LISP knowledge disappeared through nine half lives, but ...
|
In this program, I have to check the range of a given age and then print a message as per the age. I want to optimize the if else logic.
/* Sample code to read in test cases:*/
import java.io.*;
...
|
def greatest(a,b):
if a>b:
return a
return b
def odd_check(a):
return not(a%2 == 0)
def go(x,y,z):
a = odd_check(x)
b = odd_check(y)
c = odd_check(z)
if a and b ...
|
I've recently started working on making my own programming language and I just wrapped up its lexer. I'm too young to take any official training in C, compiler construction, or computer science so I'm ...
|
I just implement Dijkstra's algorithm in C99. Can you review my code please? I'm looking for any mistake, performance improvement or coding style errors.
main.c
#include "src/map.h"
#include ...
|
Greatest hits from previous weeks:
|
I want to generate a list of N different random numbers:
public static List<int> GetRandomNumbers(int count)
{
List<int> randomNumbers = new List<int>();
for (int i=0; ...
|
I would like to know if my approach is correct and how could it could be improved? Also, is there a way to get rid of the relation between the Piece and the Board? At the moment, I am storing the ...
|
Can you answer these?
|
I am working on a project to automate utilities of our application on Linux.
The utilities are basically chunks of programs with specific options for specific tasks. They are run like UNIX commands. ...
|
I'm currently building a Windows Form Application using Visual Studio 2015 and the Visual Basic.NET programming language.
On the main form there is a Tab Control and an ActiveX PDf viewer control. ...
|
This is a follow on to Part 1
In order to use my new Specifications within expression trees so I can use them in projections/navigation collections I had to write an ExpressionVisitor to find ...
|