Top new questions this week:
|
I am teaching computing to an AS class and this was their assignment:
Bush Wanderer
Task 1
Create a 5x5 grid of hashes(#) where the player is an x on the
board
Prompt the player ...
|
About
This is a SEDE query which will calculate your activity and participation on a site. It's geared for Programming Puzzles & Code Golf where questions are values more, but the values can be ...
|
I'm a first year college student, Computer Science major. This is my crack at the FizzBuzz interview question in Java. What kind of improvements could I make?
//Prints numbers 1 - 100, 25 values per ...
|
This is my version of snakes in C++ using the ncurses library. I would like to hear from you how this piece of code can be improved and general advice for future projects regarding coding and ...
|
Doing some exercises on basic data structures, I learned about queues, and decided to roll my own to better understand how a basic queue can function. As the name indicates, this Queue is made from a ...
|
So, I kept refactoring my Sage300 API wrapper - I wanted the client code to feel just like using Entity Framework - this is the closest I got to it:
using (var context = new SageContext(/*redacted ...
|
I have been learning AngularJS and have written my first app. It's a Hangman AI which learns words and guesses the solution based on the words it knows.
Please look over my code and provide some ...
|
Greatest hits from previous weeks:
|
I am trying a stack implementation using an array. I want to know if this approach is OK or if there is a logical problem. This program is working fine.
#include <stdio.h>
#define MAXSIZE 5
...
|
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've got ~20GB of data (coming from small files of 16ko that I've concatenated to one file) which is like so:
HeaderA|HeaderB|HeaderC|HeaderD|HeaderE| <= File1
value A|value B|value C|value ...
|
I created my own implementation of Segment Tree structure. It works well, it is lazy, it supports arbitrary functions and is able to change the value of the whole segment fast.
But there are some ...
|
This connection class can be used, through composition, to make IRC clients for different kinds of IRC services.
#ifndef CONNECTION_HPP
#define CONNECTION_HPP
#include <string>
#include ...
|