Top new questions this week:
|
I am self studying C++ from Robert Lafore's OOP in C++. I am solving the first exercise questions of chapter-3 loop and decisions. I've written three different codes using different approaches. I want ...
|
How can I improve this code
Please tell proper indentation and usage of camel-case.
#include <iostream>
using std::cout;
struct Node
{
int data;
Node* next;
};
Node* Create(int data){
...
|
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 ...
|
I have a Java application that uses a few switch statements to get user information about students and classes. I have three MySQL tables:
students
student_id | student_name | hometown
...
|
I've implemented a singly linked list in Java as a practice exercise and would appreciate a review.
LinkedList.java
public class LinkedList {
private Node head;
private int size;
...
|
My code will generate a spelling mistake inside of a string 50% of the time.
It will retrieve a letter from a random index in the string like, "t" and then duplicate that letter like, "tt" and store ...
|
Once upon a time, there was a duck that wanted to know where and how user code was calling into the VBA standard library and Excel object model. To match the rest of its API, the poor little duck had ...
|
Greatest hits from previous weeks:
|
During work, I was given this task: to group elements with similar properties in the array.
In general, the problem is as follows:
var list = [
{name: "1", lastname: "foo1", age: "16"},
...
|
The following code sorts an HTML table with JavaScript (without using any external libraries like jQuery). Are there any shortcomings or possible improvements I could make?
<html>
...
|
Can you answer these?
|
A while back I had opened this topic: Tic Tac Toe - Stage 1: console PvP
I had to put that mini-project on hold due to exams, but I've started working on it again a couple of days ago. Now it's ...
|
Context
I have a bunch of data points that look roughly like this:
(defn rand-key []
(into [] (repeatedly 3 #(- (rand-int 19) 9))))
(defn rand-val []
(rand-nth [:foo :bar :baz :qux]))
(def ...
|
I wrote the following two players snake game in OCaml. It is working fine (I did not pay much efforts to the graphical appearance though). As a beginner in OCaml, I would be happy to have some review. ...
|