Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
Computer Organization & Architecture microprocessor system-programming

8086 program to determine sum of corresponding elements of two arrays

Problem – Write a program in 8086 microprocessor to find out the sum of two arrays of 8-bit n numbers, where size “n” is stored at offset 500 and...
Computer Organization & Architecture microprocessor system-programming

8086 program to determine subtraction of corresponding elements of two arrays

Problem – Write a program in 8086 microprocessor to find out the subtraction of corresponding elements of two arrays of 8-bit n numbers, where size “n&#...
Arrays Divide and Conquer Binary Search

K-th Element of Two Sorted Arrays

Given two sorted arrays of size m and n respectively, you are tasked with finding the element that would be at the k’th position of the final sorted array. Exa...
Combinatorial Dynamic Programming Dynamic Programming

Count of arrays having consecutive element with different values

Given three positive integers n, k and x. The task is to count the number of different array that can be formed of size n such that each element is between 1 to k and...
Arrays Dynamic Programming Order-Statistics

K maximum sums of non-overlapping contiguous sub-arrays

Given an Array of Integers and an Integer value k, find out k non-overlapping sub-arrays which have k maximum sums. Examples: ...
Arrays Dynamic Programming Directi

Find Maximum dot product of two arrays with insertion of 0’s

Given two arrays of positive integers of size m and n where m > n. We need to maximize the dot product by inserting zeros in the second array but we cannot disturb...
Dynamic Programming LIS Dynamic Programming

Find longest bitonic sequence such that increasing and decreasing parts are from two different arrays

We are given two arrays, we need to find the longest possible bitonic sequence such that increasing part must be from first array and should be a subsequence of first...
Arrays Dynamic Programming Order-Statistics

K maximum sums of overlapping contiguous sub-arrays

Given an Array of Integers and an Integer value k, find out k sub-arrays(may be overlapping) which have k maximum sums. Examples: Input : arr = {4, -8, 9, -4, 1, -8, ...
Arrays Dynamic Programming Modular Arithmetic

Count of arrays in which all adjacent elements are such that one of them divide the another

Given two positive integer n and n. The task is to find the number of arrays of size n that can be formed such that : Each element is in range [1, m] All adjacent ...
Arrays Greedy Searching

Maximum sum of increasing order elements from n arrays

Given n arrays of size m each. Find the maximum sum obtained by selecting a number from each array such that the elements selected from the i-th array are more than t...

Subscribe to Our Newsletter