Top new questions this week:
|
I found the following challenge online:
Create a function that takes a string and returns that string with the first half lowercased and the last half uppercased.
eg: foobar == fooBAR
...
|
I wrote this program to determine the Greatest Common Factor of any 2 given numbers, and would like to know of any improvements that can be made. I have tested it using a loop and 2 randomly generated ...
|
Can you please review this code to determine if it's good or can be improved?
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* ...
|
I have wrote the following code in C++ for the n-body problem. This code is sequential as later on I am planning to parallelize it using OpenMP. I want to know whether I have wrote the correct ...
|
A long should be treated as a list of 32 unsigned numbers, each of them just two bit long. So 0x1234F... represents
{0, 1, 0, 2, 0, 3, 1, 0, 3, 3, ...}
and 0x55AA0... represents
{1, 1, 1, 1, 2, 2, ...
|
I know this has been done a million times before, but this is my implementation of bubble-sort, insertion-sort, merge-sort, heap-sort, and quicksort. Any feedback on how to make it better would be ...
|
I have this painting app called JPaint in Java and I'm wondering if it could be improved. The variable declaration seems repetitive and long, and I think it might be able to be improved.
public class ...
|
Greatest hits from previous weeks:
|
Objective:
I want to import an Excel file, and read the rows of certain columns. For this, I use ExcelDataReader. I've implemented a low-level class called ExcelData which uses the ExcelDataReader ...
|
I created some code for Minesweeper but I need help going over it. I would like if someone could go over it and point out anything (repeating code, code being called multiple times when not needed, ...
|
Can you answer these?
|
I have multiple (1000+) JSON files each of which contain a JSON array. I want to merge all these files into a single file.
I came up with the following, which reads each of those files and creates a ...
|
I'm moving on to graphics, picking Pyglet and Cocos2D. This is my first program in Python with GUI.
Introducing:
Two distinct high definition button sprites
Satisfying high quality button pressing ...
|
I wrote a simple neural network simulator (the biophysical kind) from scratch, and was hoping to get some feedback on how I can speed things up, or any C++ / compilation best practices that I can ...
|