Re: [algogeeks] Re: kth smallest element

2011-11-11 Thread rachel
what you didn't understand, logic or question ? On Fri, Nov 11, 2011 at 10:05 PM, Ankuj Gupta wrote: > I tried to understand the logic of it but could not :( > > On Nov 11, 11:17 am, shady wrote: > > no, for eg. > > > > array1 = { 1, 2, 5, 6, 7, 7, 7, 23}; > > array2 = { 1, 2, 2, 4, 8, 9, 12 };

Re: [algogeeks] Weird Behaviour of Fork()

2011-11-10 Thread rachel
er in the buffer gets > printed on terminal. > bt in the 2nd code, due to new line, it gets flushed off before fork, nd > so the forkd pr doesn't print this. > > On Fri, Nov 11, 2011 at 12:22 PM, rachel wrote: > >> main() >> { >> printf("algo

[algogeeks] Weird Behaviour of Fork()

2011-11-10 Thread rachel
main() { printf("algo "); fork(); // do anything } in this program, it is printing "algo" two times. main() { printf("algo \n"); fork(); // do anything } in this program, it is printing "algo" only once. when a fork() is done, processes gets doubled and the execution star