[algogeeks] Re: doubt boss...

2006-05-26 Thread Haider
it accepts. as array is address of the first element i.e. in your case address of a[0] and there is no upper bound check atleast in C. so you can access and assign memory location which is not reserved in your decleration but don't follow this practice as you may write or corrupt memory used by ot

[algogeeks] Re: find all paths from one node to another node

2006-05-10 Thread Omar Haider
hi everyone , what i propose for this very problem , if i understand it correctly , is to use recursion with memoization ... let us assume that we want to know the number of paths in a directed graph between 2 of its vertices u and v ... what we do is write this simple memoization : # define num