Sunidhi Bansal has Published 1100 Articles

Count elements that are divisible by at-least one element in another array in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 11:51:29

299 Views

We are given two arrays, let's say arr_1[] and arr_2[] both containing integer values and the task is to calculate the count of elements that are divisible by at least one element in another array. It means there we need to count those elements having at least one factor in ... Read More

Count divisible pairs in an array in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 11:46:43

193 Views

We are given an array of any size containing integer elements and the task is to calculate the count of pairs in an array such that one element of a pair divides another element of a pair.Arrays a kind of data structure that can store a fixed-size sequential collection of ... Read More

Count number of elements between two given elements in array in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:42:22

1K+ Views

We are given an array containing integer elements and two numbers start and end and the task is to calculate the count of elements present between start and end in an array.Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. ... Read More

Count elements present in first array but not in second in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:40:00

94 Views

We are given an array of any size containing integer elements and the task is to calculate the count of elements that are present in the first array but not in the second array..Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the ... Read More

Count distinct elements in an array in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:37:30

7K+ Views

We are given an unsorted array of any size containing repetitive elements and the task is to calculate the count of distinct elements in an array.Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store ... Read More

Count and Print the alphabets having ASCII value not in the range [l, r] in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:35:11

98 Views

We are given with a string of any length and the task is to calculate the count and print the alphabets in a string having ASCII value not in the range [l, r]ASCII value for character A-Z are given belowABCDEFGHIJKLMNOPQRS65666768697071727374757677787980818283TUVWXYZ84858687888990ASCII value for characters a-z are given belowabcdefghijklmnopqrs979899100101102103104105106107108109110111112113114115tuvwxyz116117118119120121122For ExampleInput − String ... Read More

Count and Print the alphabets having ASCII value in the range [l, r] in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:31:23

241 Views

We are given with a string of any length and the task is to calculate the count and print the alphabets in a string having ASCII value in the range [l, r]ASCII value for character A-Z are given belowABCDEFGHIJKLMNOPQRS65666768697071727374757677787980818283TUVWXYZ84858687888990ASCII value for characters a-z are given below −abcdefghijklmnopqrs979899100101102103104105106107108109110111112113114115tuvwxyz116117118119120121122For ExampleInput − String ... Read More

Count Non-Leaf nodes in a Binary Tree in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:28:05

2K+ Views

We are given with a binary tree and the task is to calculate the count of non-leaf nodes available in a binary tree.Binary Tree is a special data structure used for data storage purposes. A binary tree has a special condition that each node can have a maximum of two ... Read More

Count nodes in Circular linked list in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:24:30

867 Views

We are given a circular linked list with the nodes and the task is to calculate the count of nodes present in a circular linked list.Circular Linked List is a variation of Linked list in which the first element points to the last element and the last element points to ... Read More

Count no. of characters and words in a string in PL/SQL

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 10:21:54

2K+ Views

We are given a string of any length and the task is to calculate the count of characters and words in a string using PL/SQL.PL/SQL is a combination of SQL along with the procedural features of programming languages.It was developed by Oracle Corporation in the early 90's to enhance the ... Read More

Advertisements