Sunidhi Bansal has Published 1085 Articles

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

162 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

327 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

1K+ 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

Count all triplets whose sum is equal to a perfect cube in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 09:40:12

239 Views

We are given with an array of n integers and the task is to calculate the count all the triplets whose sum is equal to perfect cubeWhat is the perfect cubeA perfect cube is a number which is a cube of any number, like 125 is a cube of 5 ... Read More

Count characters with same neighbors in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 09:27:28

251 Views

We are given a string with, let’s say, str and the task is to compute the count of characters in a string str having the same neighbors and that will include both left and right side of a character in a string. Also, in this scenario the first and last ... Read More

Count Hexadecimal Number in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 09:26:02

417 Views

We are given a range having start and end and the task is to calculate the count of hexadecimal numbers or alphabets present in the given range.What are Hexadecimal Alphabets?In computer terms, hexadecimal numbers are those numbers that are having base 16 which means the binary digit can be represented ... Read More

Count characters in a string whose ASCII values are prime in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 09:22:33

325 Views

We are given a string of any length containing both uppercase and lowercase letters and the task is to compute the count of those characters whose ASCII values are prime.The ASCII values of uppercase letters[A-Z] start with 65 till 90 and lowercase letters[a-z] starts with 97 till 122.For ExampleInput string ... Read More

Count characters at same position as in English alphabets in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 15-May-2020 09:20:23

252 Views

We are given a string of any length containing both uppercase and lowercase letters and the task is to compute the count of those characters that are at the same position as in english alphabets.For ExampleInput − String str = eBGD Output − Count is: 2Explanation − B and D ... Read More

Advertisements