×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Premium
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
Sudhir sharma
has Published
564
Answers
How to convert hex string to byte Array in Java?
Java
Object Oriented Programming
Programming
sudhir sharma
Published on 03-Jul-2020 11:41:22
We can convert a hex string to byte array in Java by first converting the hexadecimal number to integer value using the parseInt() method of the Integer class in java. This will return an integer value which will be the decimal conversion of hexadecimal value. We will then use the ...
Read More
XOR of all Prime numbers in an Array in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:26:33
In this problem, we are given an array of n elements. Our task is to print xor of all prime numbers of the array.Let’s take an example to understand the problem, Input − {2, 6, 8, 9, 11}Output −To solve this problem, we will find all the prime numbers of ...
Read More
XOR of all subarray XORs in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:25:13
In this problem, we are given an array of n elements. Our task is to print XOR of XORs all possible subarrays (taken in order) created from elements of the array.Let’s take an example to understand the problem, Input − array = {1, 3, 6, 8}Output − 0Explanation −(1) ^ ...
Read More
XOR of all the elements in the given range [L, R] in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:23:40
In this problem, we are given two integer L and R denoting a range. Our task is to find xor of all elements within the range [L, R].Let’s take an example to understand the problem, Input − L=3, R = 6Explanation − 3^4^5^6 =To solve this problem, we will find ...
Read More
XOR of all the nodes in the sub-tree of the given node in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:20:24
In this problem, we are given an n tree and there are some queries that are nodes of the tree. Our task is to print the XOR of all nodes of the sub-tree formed by the given node.Let’s take an example to understand the problem, Queries − {1, 6, 5}Output ...
Read More
XOR of numbers that appeared even number of times in given Range in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:17:50
In this problem, we are given an array of n elements and there are some queries which are range from a start point to endpoint in the array. Our task is two finds the XOR of elements that appeared even a number of times in the range.Let’s take an example ...
Read More
XOR of the path between any two nodes in a Binary Tree in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:14:33
In this problem, we are given a binary tree and two nodes of the binary tree. Our task is to print the XOR of all nodes that come in the path between the two nodes.Let’s take an example to understand the problem, We need to find the xor of all ...
Read More
XOR of Prime Frequencies of Characters in a String in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:11:10
In this problem, we are given a string of characters, our task is to print the XOR of frequencies of characters of the string whose frequency of occurrence is a prime number.Let’s take an example to understand the problem, Input − TutorialsPointOutput −Here, we will check the frequency of occurrence ...
Read More
XOR of Sum of every possible pair of an array in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 15:06:36
In this problem, we are given an array of n elements. Our task is to generate a sequence of size n*n whose elements are the sum of a pair of all elements of A with itself. And print the xor elements of this sum array formed.Let’s take an example to ...
Read More
Write a function to get Nth node in a Linked List in C++
C++
Server Side Programming
Programming
sudhir sharma
Published on 20-Apr-2020 14:56:53
Here, we are given a linked list and an index. We have to write a function to get Nth node in a linked list.Let’s take an example to understand the problem, Inputlinked list = 34 -> 4 -> 9 -> 1 , n = 2Output9To go to the node specified ...
Read More
1
2
3
4
5
6
7
...
57
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout