[algogeeks] HOW TO CALCULATE THA size of union

2012-12-07 Thread zerobyzero
what will be the size of union A ,B,C and D. also please explain the logic.

* union A{*
*  long int y[5];*
*  union B{*
*double g;*
*union C{*
*  int k;*
*  union D{*
*char ch;*
*int x[5];*
*  }s;*
*}a;*
*  }b;*
*}*p;*

-- 




[algogeeks] what will be the logic for this OS question?

2012-12-06 Thread zerobyzero
if (lock)wait
else
lock=1
CS
lock=0
a. No issues
b. works only for uniprocessor systems
c. data insufficient
d. won’t work on any system

-- 




[algogeeks] Print all possible valid set of given numer

2012-08-22 Thread zeroByZero
A set will be call valid if all number can be represent as a alphabet (ie 
number should be less than or equal to 26) .
Example :
given number is 1234 then
1) {1,2,3,4} - valid ans
2){12,3,4} - Valid
3){1,23,4} -Valid
4){1,2,34} -not valid
5){123,4} - not valid
6){1234} not valid
So for given number print All valid SET.

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/9GDKbM5jYp4J.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[algogeeks] Return index of first mismatch bracket ( or )

2011-12-20 Thread zeroByZero
In a given string arrary arr[] = ((()()) or any other string return
index for which no match is found as for this example is index 0 and
for ()()()(() is index 6

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.