skipper1penguin
BAN USER
Forum Posts (1)
Comments (3)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
OMG! can someone give a mean/median salary (per annum) in companies like accenture, TCS, infosys etc. in bangalore?
- skipper1penguin July 28, 2013Comment hidden because of low score. Click to expand.
0
of 0 vote
here is a java based solution
private static String generatePattern(int p, int q, int n){
byte[] bytes = new byte[n];
for(int i=(n-1);i>=0;){
int ones = p;
while(ones-- > 0 && i >=0){
bytes[i--] = 1;
}
int zeros = q;
while(zeros-- > 0 && i >=0){
bytes[i--] = 0;
}
}
return Arrays.toString(bytes);
}
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
MVC is an architectural pattern for your presentation layer
- skipper1penguin August 07, 2013Factory pattern is a creational design pattern to instantiate objects of a certain type.