### Search result related togiven an array with numbers write a aprogram that efficiently answeers queries of the form which is the nearest larger value for the number at position i

Notes

Model Question Paper PROGRAMMING IN C AND DATA STRUCTURES (14PCD13/14PCD23)

GE2115-Computer practice Laboratory Part-6

Web programming laboratary manual 10csl78

Numerology number 1

GE2115-Computer practice Laboratory Part-1

Numerology number 2

Database Management System 10CS54 VTU unit-4

Design and Analysis of Algorithms Subject Code : 10CSL47 Lab Manual PROGRAM-1

Sixth Semester B.E. Degree Examination, June/July 2013 Compiler Design Question paper

Design and Analysis of Algorithms Subject Code : 10CSL47 Lab Manual PROGRAM-2

Questions

Given an array with numbers, write a program that efficiently answers queries of the form: “Which is the nearest larger value for the number at position i?”, where distance is the difference in array indices. For example in the array [1,4,3,2,5,7], the nearest larger value for 4 is 5. After linear time preprocessing you should be able to answer queries in constant time.

Two numbers are in the ratio of 4 : 5. If the larger number is 15 more than the smaller number, then find the product of the numbers (NIFT PG)

The difference of squares of two numbers is 88. If the larger number is 5 less than twice the smaller number, then find the two numbers. CBSE Mathematics

25% of a number is greater than the other number by 5. If sum of the numbers is 70, what is the ratio of the larger number to the smaller number? (NIFT UG)

Consider the following statements regarding Golden Ratio for positive integers

If the product of two numbers is 10 and the sum of the two numbers is 7, then the larger of the two numbers will be(GMAT-MATHS)

The product of two consecutive even numbers is 16128. Which is the larger number?

State whether the following statements are True or False:-Mathematics-cbse-std 6th

Write a Program to print all prime numbers up to a given number?

In each of the following questions, two rows of number are given. The resultant number in each row is to be worked out separately based on the following rules and the question below the rows of numbers are to be answered. The operations of numbered progress from left to right.

Q.57) Let A be an array of 31 numbers consisting of a sequence of 0’s followed by a sequence of 1’s. The problem is to find the smallest index i such that A[i] is 1 by probing the minimum number of locations in A. The worst case number of probes performed by an optimal algorithm is________. -gate computer science 2017

Write queries in Relational Algebra? Database Management Systems - 10CS54 VTU notes 8 Marks (Dec /Jan 2013/June 2016)

If a prime number on division by 4 gives a remainder of 1, then that number can be expressed as GATE-Aerospace Engineering-Question-2012

Two numbers are selected at random (without replacement) from the first five positive integers. Let X denote the larger of the two numbers obtained. Find the mean and variance of X (MATHS-CBSE-12-2018)

Which of the following statements are true (T) and which are false (F) ?-Mathematics-cbse-class 6th-Chapter 2

Five numbers 10, 7, 5, 4 and 2 are to be arranged in a sequence from left to right following the directions given below:

Five numbers 10, 7, 5, 4 and 2 are to be arranged in a sequence from left to right following the directions given below: 1. No two odd or even numbers are next to each other. 2. The second number from the left is exactly half of the left-most number. 3. The middle number is exactly twice the right-most number. Which is the second number from the right? (A) 2 (B) 4 (C) 7 (D) 10

Five numbers 10, 7, 5, 4 and 2 are to be arranged in a sequence from left to right following the directions given below:

Five numbers 10, 7, 5, 4 and 2 are to be arranged in a sequence from left to right following the directions given below: 1. No two odd or even numbers are next to each other. 2. The second number from the left is exactly half of the left-most number. 3. The middle number is exactly twice the right-most number. Which is the second number from the right? (A) 2 (B) 4 (C) 7 (D) 10

Five numbers 10, 7, 5, 4 and 2 are to be arranged in a sequence from left to right following the directions given below: 1. No two odd or even numbers are next to each other. 2. The second number from the left is exactly half of the left-most number. 3. The middle number is exactly twice the right-most number. Which is the second number from the right? (A) 2 (B) 4 (C) 7 (D) 10