Courses
Tutorials
Practice
Jobs
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
PHP Program to Find the Number Occurring Odd Number of Times
Write a PHP program for a given array of positive integers. All numbers occur an even number of times except one number which occurs an odd number of times. Find the numbe...
Read More
PHP
C# Program to Find the Number Occurring Odd Number of Times
Write a C# program for a given array of positive integers. All numbers occur an even number of times except one number which occurs an odd number of times. Find the number...
Read More
C#
Python Program to Find the Number Occurring Odd Number of Times
Write a Python program for a given array of positive integers. All numbers occur an even number of times except one number which occurs an odd number of times. Find the nu...
Read More
Python
Java Program to Find the Number Occurring Odd Number of Times
Write a Python program for a given array of positive integers. All numbers occur an even number of times except one number which occurs an odd number of times. Find the nu...
Read More
Java
C/C++ Program to Find the Number Occurring Odd Number of Times
Given an array arr[] consisting of positive integers that occur even number of times, except one number, which occurs odd number of times. The task is to find this odd num...
Read More
Hash
C Programs
C++ Programs
DSA
Arrays
Bitwise-XOR
Number occurring odd number of times
Given an array arr[] of positive integers. All numbers occur an even number of times except one number which occurs an odd number of times. Examples :Input : arr[]= [1, 2,...
Read More
Bit Magic
Hash
DSA
Arrays
Amazon
Snapdeal
Bitwise-XOR
Print reverse of a string using recursion
Given a string, the task is to print the given string in reverse order using recursion.Examples:Input: s = "Geeks for Geeks"Output: "skeeG rof skeeG"Explanation: After rev...
Read More
Strings
Recursion
DSA
Position of rightmost set bit
Given an integer n, Return the position of the first set bit from right to left in the binary representation n. If no set bits present , then return 0.Note: Position of ri...
Read More
Bit Magic
DSA
Amazon
PHP Program to find whether a no is power of two
Given a positive integer, write a function to find if it is a power of two or not.Examples :Input : n = 4Output : Yes22 = 4Input : n = 7Output : NoInput : n = 32Output : Y...
Read More
Web Technologies
PHP
PHP Programs
C# Program to find whether a no is power of two
Given a positive integer, write a function to find if it is a power of two or not.Examples :Input : n = 4Output : Yes22 = 4Input : n = 7Output : NoInput : n = 32Output : Y...
Read More
C#
Java Program to find whether a no is power of two
Given a positive integer, write a function to find if it is a power of two or not.Examples :Input : n = 4Output : Yes22 = 4Input : n = 7Output : NoInput : n = 32Output : Y...
Read More
Java
C++ Program to find whether a no is power of two
Given a positive integer, write a function to find if it is a power of two or not.Examples :Input : n = 4Output : Yes22 = 4Input : n = 7Output : NoInput : n = 32Output : Y...
Read More
C++
C Program to find whether a no is power of two
Given a positive integer, write a function to find if it is a power of two or not.Examples :Input : n = 4Output : Yes22 = 4Input : n = 7Output : NoInput : n = 32Output : Y...
Read More
C Language
Check for Power of 2
Given a positive integer n, check whether it is a power of 2 or not.Examples: Input : n = 16Output : trueExplanation: 24 = 16 Input : n = 42Output : falseExplanation: 42...
Read More
Bit Magic
Mathematical
DSA
Qualcomm
Samsung
SAP Labs
FactSet
Efficient way to multiply with 7
Given a number n, find the result after multiplying it by 7.Example:Input: n=8Output: 56Naive Approach: The basic way to solve this is to use a multiplication operator, ad...
Read More
Bit Magic
Mathematical
DSA
1
...
12154
12155
12156
12157