Top new questions this week:
|
Here's my attempt at porting the Lua codebase for my programming language to C++(11). This is just the first step, the tokenizer, and I wanted to remove all the bad performance / practices / code ...
|
Challenge
Find all possible moves for a knight on an empty chessboard.
Specifications
The first argument is a path to a file.
The file contains multiple lines.
Each line is a test case ...
|
I am trying to solve the below problem from an online coding site:
Fredo is pretty good at dealing large numbers. So, once his friend
Zeus gave him an array of N numbers, followed by Q queries ...
|
This is a velocity, distance, and time calculator that I wrote not too long ago. How can I improve upon this code?
import java.util.Scanner; import javax.swing.JOptionPane; //imports
...
|
I need to print (or store) all diagonals of a matrix. This includes the main diagonal ( { (i,i) | i = 1, 2, ... min(m,n) } ). Then all super and sub diagonals.
For example:
1 2 3 4
5 6 7 8
...
|
I'm a student in college, and while I have coded a lot, I still feel like I've only scraped the surface. I have learned a lot of things over the years, but very few of my professors ever did code ...
|
Earlier today I wrote a question (Validating a StreamingPin) and I thought it was a good idea (apparently I was the only one who thought so, but whatever), so I proceeded further with it and developed ...
|
Greatest hits from previous weeks:
|
I was advised by a Reddit user to get my code reviewed on this site.
The complete code is on GitHub.
# Monopoly Simulator
# http://img.thesun.co.uk/aidemitlum/archive/01771/Monopoly2_1771742a.jpg
...
|
This is my version of the Snake game, written in C++. How could it be improved, and what general advice would be useful for future projects?
#include <iostream>
#include <conio.h>
void ...
|
Can you answer these?
|
I'm new to C# and am trying to write a program that randomly generates complete Sudoku grid of variable size. I'm able to generate a 25x25 grid in usually less than 10 seconds but I haven't been able ...
|
I have built a tiny script to send out push notifications.
I would be glad to receive general suggestions / feedback.
My main problem is that the only security offered is coming from the o.s. ...
|
Starting with the fact that creating the classic database handler in Android is really annoying and it usually takes a lot of time since you have to create one handler for each object, I thought at ...
|