Re: [algogeeks] Local Minima in Unsorted Array

2012-08-05 Thread dheeraj chawla
hello guys, check this code n tell me if i m worng int localminima(int a[],int start,int end) {int mid; while(startend) return 0; return -1; } On Mon, Aug 6, 2012 at 12:15 AM, payal gupta wrote: > this could help although not true for many cases as said above > > http://ideone.c

Re: [algogeeks] Removing space inplace

2012-08-01 Thread dheeraj chawla
@sambhavna ...according to me u r violating the condition...bcoz using pointer u r trying to do shifting(moving) character values with spaces.so acc. to question is not correct.. On Wed, Aug 1, 2012 at 10:08 AM, Sambhavna Singh wrote: > Please have a look at this : > http://www.career