Top new questions this week:
|
Description
Software like Swype and SwiftKey lets smartphone users enter text by dragging their finger over the on-screen keyboard, rather than tapping on each letter.
You'll be ...
|
Some days ago, I figured out that I'd like to get a notification every time a new question is asked here. So, I've made a really simple Python script, which uses pync (only OSX compatible) to do that ...
|
I was doing a simple problem on codingbat and testing out my python. The problem was:
Given two int values, return their sum. Unless the two values are the same, then return double their sum.
...
|
Problem statement:
Given a sorted (increasing order) array with unique integer elements, write an algorithm to create a binary search tree with minimal height.
Assumptions:
The array (and ...
|
I coded a python solution for the question below. I am after the fastest solution. Also, I would be grateful if you could point out parts that are not pythonic / inefficient.
Question: A website ...
|
The puzzle goes like this: in a rectangular 2D grid there are empty spaces (.), exactly one starting point (S, s) and obstacles (denoted below by X's). The objective of the puzzle is to find a path ...
|
This was a simple IRC bot I threw together a long time ago, found recently, and was curious as to if there were any kind of significant improvements that could made.
using System;
using System.Net;
...
|
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"},
...
|
Any suggestions?
#include<iostream>
using namespace std;
class node
{
friend class linked;
private:
int data;
public:
node ...
|
Can you answer these?
|
I've been toying around with writing a decentralized, P2P application in REBOL 2, and one of the things I need to do is generate a universally unique identifier for users. I have written a function ...
|
As an assignment for a class, I have made a small Harry Potter family tree in Prolog. It compiles into a self-contained executable that can be run straight from the command line on Linux machines. ...
|
To get n-th member of a struct without non-empty bases and w/o non-public members C++ now have a pretty way:
#include <type_traits>
#include <utility>
#include <tuple>
struct ...
|