Replacing Recursion With a Stack

Posted by: youve been HAACKED, on 05 Mar 2007 | View original | Bookmarked: 0 time(s)

In Jeff Atwoods infamous FizzBuzz post, he quotes Dan Kegel who mentions. Less trivially, Ive interviewed many candidates who cant use recursion to solve a real problem. A programmer who doesnt know how to use recursion isnt necessarily such a bad thing, assuming the programmer is handy with the Stack data structure. Any recursive algorithm can be replaced with a non-recursive algorithm by using a Stack. As an aside, I would expect any developer who knew how to use a stack in this way would probably...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 867 | Hits: 41

Similar Posts

  • Getting and setting max zIndex with jQuery more
  • CTP before the official release of Telerik's charts, gauges and scheduler for WPF more
  • Protein is Good for You, part 2 (Matt Gertz) more
  • Foundations of Programming - pt 7 - Back to Basics: Memory more
  • .NET and Java Interop over Web services - using JMS! more
  • Recursion in F# more
  • Debugging and Profiling Features in VS 2008 more
  • Spool operators in query plan... more
  • 6 months. . . to become a better developer more
  • JUnit 4 feels like NUnit with attribute-like syntax more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD