Top new questions this week:
|
There have been many FizzBuzz questions lately, and here is one more! Granted, it is pretty straightforward to do FizzBuzz with SQL using calculations.
So instead, I'm going to do a FizzBuzz which …
|
I am creating a Blackjack simulator in Java in order to better understand the language. I have written the basic strategy section for a player and it is terribly long.
Is there a better way to do …
|
I have been wanting to learn programming for some time now and decided to really give it a shot today. I have edited and read lots of things in Java to fix small issues but never written from scratch. …
|
I am trying to learn PHP in depth by creating this personal CMS. I try to utilize OOP concepts and do best I can...
The way I am trying to design this CMS is to keep including 'modules' within a page …
|
I'm new to Python (and generally to programming), and I have recently written this Minesweeper game:
import random
import string
import os
class Square(object):
"""Represent a square in the cell.
…
|
Just what it says on the tin: a brainfuck interpreter in JavaScript.
function brainfuck(source) {
var code = source.replace(/[^-+<>.,[\]]/g, '').split(''); // program code
var loop = …
|
I want to create an XML format in which I will define data objects for a game I am currently working on.
The base idea is that I will have Elements which can be combined in other Elements, Items or …
|
Greatest hits from previous weeks:
|
I've written this code for a merge sort, which is meant to implement the pseudo-code from Cormen's Introduction to Algorithms:
#include <iostream>
#include <cstdlib>
using namespace std;
…
|
I am hiding and fading in different content on the same page using jQuery to hide() and fadeIn() the content depending on which link is clicked.
It works how I want it to, but the way I've written …
|
Can you answer these?
|
Below is my implementation of a pool. It is based on a hash table and supports using strong, soft or weak references to store objects. At the start there is a builder class to configure and create …
|
This my first foray in F#, and I cannot think (yet) functional. I have implemented an interface for a discount curve and the implementation for a piecewise constant instant rate implementation.
I …
|
Right now, my solution counting likes of a specific user is
Starting a recursive call on the "/{user-id}/posts" edge
Iterate through all posts
On each post iterate through each like on the likes …
|