write a program to display & create a rational number
Answer Posted / hansda.hansda.charan493
in c++(language)
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
What are nested functions in c?
write a program in c language to print your bio-data on the screen by using functions.
Why functions are used in c?
Why do some versions of toupper act strangely if given an upper-case letter?
shorting algorithmS
what is ur strangth & weekness
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
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 malloc return c?
How can a process change an environment variable in its caller?
When should volatile modifier be used?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What does malloc () calloc () realloc () free () do?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is string length in c?