Problem Context As an exercise for myself (I’m learning clojure). I wanted to implement the Depth-first search algorithm. How I […]

# Tag: optimization

## Challenge: solution for this deep-iteration JavaScript function dilemma?

Problem Trying to implement a deep-iteration function with some constraints, I’ve noticed the faster solution is iterating it twice! Any […]

## Practical advise for CMS

Problem I’m working on a CMS system. The basis is pretty much done but before going any further I would […]

## Optimize Node.js function

Problem I have the follow function: Download.prototype.fundamentals = function(exchanges, cb){ if (!(exchange = exchanges.pop())) return var that = this; this.login(function(err){ […]

## Naive Bayes classifier

Problem I just started learning Haskell, and I must say it is unlike anything else. As my first not-entirely-trivial piece […]

## Optimizing insertion sort for small amounts of data

Problem I’m building a hybrid sort, and for that I need a fast and adaptive sort ideal for small sizes […]

## My final sign up controller

Problem I’ve asked a couple of questions here before regarding my controller, but I think I’ve finally gotten to understand […]

## Optimize query containing too many inner join and rows

Problem I have the following query: SELECT * INTO ##TempStaffT FROM Staff HF WHERE HF.[businessline_id]=’T’ AND HF.[offices_id] IN (SELECT * […]

## Project Euler problem 92 – square digit chains

Problem Link to problem. A number chain is created by continuously adding the square of the digits in a number […]

## How to generate valid number of combinations basis on the rules?

Problem I have a list of datacenters, which are dc1, dc2 and dc3. And each datacenter has six ids as […]