recursive (1,874)


Generate list of all possible permutations of a string

Generate list of all possible permutations of a string

How would I go about generating a list of all possible permutations of a string between x and y characters in length, containing a variable list of characters. Any language would work, but it should b…


What is recursion and when should I use it?

Locked.This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. One of the topics that see…


search - PowerShell FINDSTR eqivalent?

What's the DOS FINDSTR equivalent for PowerShell? I need to search a bunch of log files for "ERROR".…


Implementing permissions in PHP

I've tried to do this several times with no luck. After reading this post, it made me interested in doing this again. So can anyone tell me why the following doesn't work?<?php $guest=1; $edito…


Factorial Algorithms in different languages

I want to see all the different ways you can come up with, for a factorial subroutine, or program. The hope is that anyone can come here and see if they might want to learn a new language. Ideas: Proc…


Iterating over a complex Associative Array in PHP

Is there an easy way to iterate over an associative array of this structure in PHP: The array $searches has a numbered index, with between 4 and 5 associative parts. So I not only need to iterate over…



algorithm - Equation(expression) parser with precedence?

I've developed an equation parser using a simple stack algorithm that will handle binary(+,-, |, &,*,/, etc) operators, unary(!) operators, and parenthesis. Using this method, however, leaves me with…


python - How can I render a tree structure(recursive) using a django template?

I have a tree structure in memory that I would like to render in HTML using a Django template. class Node(): name="node name" children=[] There will be some object root that is a Node, and c…


version control - How do I perform a recursive checkout using ClearCase?

I want to check out all files in all subdirectories of a specified folder.(And it is painful to do this using the GUI, because there is no recursive checkout option).…


Which, if any, C++ compilers do tail-recursion optimization?

It seems to me that it would work perfectly well to do tail-recursion optimization in both C and C++, yet while debugging I never seem to see a frame stack that indicates this optimization. That is ki…




and python recursion java files how directory all function example