×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Sunidhi Bansal
has Published
795
Answers
Count number of sub-sequences with GCD 1 in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 15:25:25
We are given an array of integer elements and the task is to find the sub-sequences from the given array which are having GCD as 1. GCD is the greatest common divisor of two or more integers that divides the given numbers entirely and greatest amongst all.Input − int arr[] ...
Read More
Count number of occurrences (or frequency) in a sorted array in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 15:18:08
We are given a sorted array of integer type elements and the number let’s say, num and the task is to calculate the count of the number of times the given element num is appearing in an array.Input − int arr[] = {1, 1, 1, 2, 3, 4}, num = ...
Read More
Count rows/columns with sum equals to diagonal sum in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 15:12:09
We are given a matrix which is a 2-D array having rows and columns and the task is to calculate the count of sum of all the rows and columns such that it is equal to the sum of either principal or secondary matrix.Input −int arr[row][col] = { { ...
Read More
Maximum circular subarray sum in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 15:04:47
We are given an array and the task is to form the subarrays such that the sum of subarrays in a circular fashion will result in a maximum value.Input − int arr[] = {1, 2, 8, 4, 3, 0, 7}Output − Maximum circular subarray sum is − 22Explanation − we ...
Read More
Count smaller values whose XOR with x is greater than x in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 15:02:17
We are given an integer number let’s say, x and the task are to count the smaller numbers less than x whose XOR with x will result in a value greater than the XOR value.The truth table for XOR operation is given belowABA XOR B000101011110Input − int x = 11Output ...
Read More
Count smaller numbers whose XOR with n produces greater value in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 15:00:15
We are given an integer number let’s say, num and the task is to count the smaller numbers less than num whose XOR with num will result in a value greater than the XOR value..The truth table for XOR operation is given belowABA XOR B000101011110Input − int num = 11Output ...
Read More
Count of alphabets having ASCII value less than and greater than k in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 14:58:00
We are given a string of any length and the task is to calculate the count of alphabets having ASCII values less than or greater than or equals to the given integer value k.ASCII value for character A-Z are given belowABCDEFGHIJKLMNOPQRS65666768697071727374757677787980818283TUVWXYZ84858687888990ASCII value for characters a-z are given belowabcdefghijklmnopqrs979899100101102103104105106107108109110111112113114114tuvwxyz116117118119120121122Input − str ...
Read More
Count of pairs from 1 to a and 1 to b whose sum is divisible by N in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 14:53:28
We are given an integer array and the task is to count the total number of pairs (x, y) that can be formed using the given array values such that the integer value of x is less than y.Input − int a = 2, b = 3, n = 2Output ...
Read More
Count of pairs (x, y) in an array such that x < y in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 14:51:17
We are given an integer array and the task is to count the total number of pairs (x, y) that can be formed using the given array values such that the integer value of x is less than y.Input − int arr[] = { 2, 4, 3, 1 }Output − ...
Read More
Count Odd and Even numbers in a range from L to R in C++
C++
Server Side Programming
Programming
Sunidhi Bansal
Published on 31-Aug-2020 14:49:05
We are given a range starting from L to R of integer values and the task is to calculate the count of odd numbers and the even numbers in the range.Input − L = 7, R = 17Output − Count of Even numbers in a range from L to R ...
Read More
1
2
3
4
5
6
7
...
80
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout