Tag: recursion

VBA – Avoid nested loops with recursion (Part 2)

About two years after the “Nested loops with recursion” today I was looking for a way to avoid nested loops with recursion in google and found my article ūüôā . Lots has changed in my coding style since then as

Tagged with: ,

VBA – Sum array with recursion

This is what Wikipedia says about Recursion: Recursion occurs when a thing is defined in terms of itself or of its type. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in mathematics and

Tagged with: ,

C# – SoftUni – Natural Order Sequences

Another SoftUni¬†algorithm problem that I have considered interesting is presented here: You are given an integer S. Generate all non-empty sequences of numbers in range [1‚ĶS], which have sum of elements ‚ȧ S. Display the sequences in their natural order,

Tagged with: , , ,

C# – Three Algorithms For Fibonacci Numbers

In the current article I have decided to show three ways of calculating the Fibonacci numbers in C#. The reason for this is, because Fibonacci is usually given as an example for recursion and it is probably the worst way to

Tagged with: , , ,