Problem Problem statement Ping-pong The ping-pong sequence counts up starting from 1 and is always either counting up or counting […]
Category: Recursion
Large switch statement bucketing system
Problem I’ve finally got a solution for a “weekly streak” bucketing system I’ve been working on but unfortunately it’s resulted […]
Generate all valid combinations of n pair of parentheses
Problem Implement an algorithm to print all valid (e.g. properly opened and closed) combinations of n pair of parentheses. Following […]
Rendering tree of nodes as string
Problem I’m creating a debug-view for my expression-trees. They record each operation automatically in a tree that I am transforming […]
Binary Search Tree – My own version of delete function
Problem Well, I am recently learning data structures and algorithms and I came across the Binary search tree and decided […]
“Dungeon Game” solution
Problem The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon […]
Recursive and Non-recursive SelectionSort
Problem This is a naive attempt of writing a recursive and non-recursive versions for SelectionSort(). My goal is mainly to […]
Convert Tail-Call Recursive Code to Loop [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Code not implemented or not working as intended: […]
Custom UI – Seeing which control has focus
Problem I’m trying to make a simple UI to better understand how interfaces and the System.Windows.Forms Controls behave. Like the […]
Python script to find large folders
Problem I wrote this script a few days ago to find all files which were taking up over a certain […]