Advertisements

If x1(n) is O(y1(n)) and x2(n) is O(y2(n)), then which of the following options is true in context of asymptotic complexity notations?

1. x1(n) + x2(n) is O(min(y1(n), y2(n)))

2. x1(n) + x2(n) is O

Passage

Function print_me(integer n)//Statement 1

{

If(n<1) return //statement 2

print n// Statement 3

print_me(n-1) // Statement 4

}

Pooa has written the following code to print numbers from 0 t

Sonal writes a Binary Search program which takes in 3 inputs from the user- Size of list, Elements of the list and Number to be searched for.

Consider the given set of inputs for this program-

Siz

Ques : Choose the correct answer:

A pseudo-code is used. Assume that when two data-types are processed through an operator, the answer maintains the same data-type as the input data-types. Assume tha

Consider the following pseudo-code

class brush

{

Private:

integer size, colorcode

function getdata( ) {--}//Statement 1

public:

integer name // Statement 2

function putdata(){...}

}

function m

Advertisements

Total workers=100 in which some are men ,some are

Privatization will lead to less corruption? 20 Days agoYeah i agree

Demonetisation of Rs.500 and Rs.1000. Is an effective steps to bring back black money ? 4 Days agovery hard to say which point is correct but we can

Net Neutrality: Advantages and Disadvantages? 4 Months agoWhat is the number of ways of expressing 3600 as a product of three ordered positive integers (abc, Read More..

Deepak Kolte 4 years agoFind the sum of prime numbers from 1 to 100 which when divided by 4 and 5 leaves the remainder 1 and Read More..

rekha 4 years agoApples cost L rupees per kilogram for the first 30 kilograms and Q rupees per kilogram for each addi Read More..

Ramakrishna Siluveru 4 years agoHi All,

It's over one year when I joined TCS.

So, I will tell you some key points that you take care for any interview(specially for freshers.) because I have known from inside that how the TR/MR/HR i Read More..

Hi friends,

I was very much disappointed when I didn't found any interview experience of Efftronics anywhere( before I attending the interview) . So I'm writing mine. I have attended Efftronics interv Read More..

It was a pool campus drive held on 20th Oct 2016,at Techno India Saltlake campus(Kolkata).The eligible students were directly mailed by IBM authority.We gathered there at 10a.m at the venue.The aptitu Read More..

IBM Interview Experience 3 years agoHi everyone,

Capgemini came to our college(VNR VJIET) on 6th Sep-2016 for campus recruitment.

->no .of students applied (630)

---------------------------------------------

Interview Process:-

1)Online Read More..