Skip to content

Perpetual Enigma

Notes from the Frontiers of Mathematics

  • Home
  • Archives
  • About

Tag: Stack

What Is Tail Recursion?

August 11, 2014 ~ Prateek Joshi ~ Leave a comment

Programmers deal with recursion all the time. It's actually quite a nice concept, but not a lot of people use it because of the mystery associated with it. To be honest, there's no mystery as such! Sometimes, a problem is too complex to solve because it is too big. If we can break the problem … Continue reading What Is Tail Recursion?

How To Deal With Buffer Overflow

May 10, 2014 ~ Prateek Joshi ~ 3 Comments

You must have encountered the word 'buffer' somewhere in your life. In everyday usage, buffer refers to something that acts as an intermediary between two things that don't get along. It's a shield which moderates the impact of one thing over the other. In the programming world, buffer refers to an area where we temporarily … Continue reading How To Deal With Buffer Overflow

Understanding Recursion: Part 4/4

October 5, 2013October 25, 2013 ~ Prateek Joshi ~ 1 Comment

In the previous posts, we understood the basics of recursion, we discussed what happens when a recursive call is made and we saw some recursive code. But all that was from a programmer's perspective. We looked at how we would see it. In this post, we will talk about about recursion from a machine's perspective. … Continue reading Understanding Recursion: Part 4/4

Understanding Recursion: Part 3/4

October 5, 2013October 25, 2013 ~ Prateek Joshi ~ 1 Comment

In the previous post, we discussed about how we can deconstruct a programming problem to use recursion to our advantage. We will continue to discuss about programming in this post as well. If you are not prepared to look at code, you may want to skip this post and proceed to the next one in … Continue reading Understanding Recursion: Part 3/4

Understanding Recursion: Part 2/4

October 5, 2013October 25, 2013 ~ Prateek Joshi ~ 2 Comments

In the previous post, we discussed about the general nature of recursion and recursive programming. We looked at a simple piece of code to understand how recursion happens under the hood. This post delves a bit deeper into recursive programming. Now that we understand recursion, how do we apply it to a real programming problem? We … Continue reading Understanding Recursion: Part 2/4

Understanding Recursion: Part 1/4

October 5, 2013October 25, 2013 ~ Prateek Joshi ~ 3 Comments

Remember the initial days when you were forced to learn recursive programming? And how you were thankful that it's all over and you don't have to deal with the whole thing anymore? Well, why do you think that is? Recursion is not all that bad! A lot of beginners who start out with programming somehow … Continue reading Understanding Recursion: Part 1/4

Number of views

  • 2,723,666 views

Number of countries

210 countries

Enter your email address to follow this blog and receive notifications of new posts by email.

Blog at WordPress.com.
  • Subscribe Subscribed
    • Perpetual Enigma
    • Join 601 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Perpetual Enigma
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Loading Comments...