Sougata Chatterjee
BAN USERI think both shud start together. Say for 11 nodes:
x1 : 1,2,3,4,5,6
x2 : 1,3,5,7,9,11
return : 6 (whuch is the middle node)
The question is to count the number of bits in an integer, not the number of bits set.
can't we simply do a sizeof() and multiply it by 8?
though personally i believe if the question was to count the number of set bits, it wud make more sense!
Direct sharing of function is not possible using function pointers for sure, because address space of P1 is different from P2, hence a pointer in P1 doesn't have a meaning in P2.
One way of doing it is, add the function to a library, and share the library between 2 processes. Or, just pass the numeric code that indicates the function to be called and dispatch the call with a lookup (if P2 is "calling" a function in P1)
Repcloptonchirsty, Android Engineer at 8x8
Hello, I am an Organic chemist and my all study and degree is complete from New York.Apart from this ...
RepYuvaanMoore, abc at 8x8
I have extensive experience as a newspaper reporter, television news reporter, AM radio talk show host and anchorman for major ...
Repblancalross748, Android Engineer at ABC TECH SUPPORT
Hello I am a Highly-professional and talented Managing Editor with a solid experience in planning and directing editorial activities for ...
this doesn't chk boundary condition
- Sougata Chatterjee May 24, 20131. if list is NULL
2. If list length is less than n
3 List size is exactly n
4. list is not circular