we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?
2 5153Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
2624Post New Convergys C Interview Questions
What are the cascade types in hibernate?
What is the difference between mvc and asp.net? : Asp.Net MVC
What is the Self & starter? what does it do in the in Genset
hw will u use awk in replacing cahrs and files
When does a 'this' pointer get created?
How to increase the size of splunk data storage?
What is the meaning of value in excel?
sale cycle
Mention the rules for using option explicit statement?
What are the different types of validation used in jsf?
Explain me how many different media queries are used by the bootstrap grid system by default?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
What is the advantage of cassandra?
What is isolation levels?
What is a Bluetooth dongle?