Skip to content

Tag Archives: Qualcomm

Given two numbers ‘a’ and b’. Write a program to count number of bits needed to be flipped to convert ‘a’ to ‘b’. Example :   Input… Read More
  Write an efficient program to count the number of 1s in the binary representation of an integer. Examples :  Input : n = 6… Read More
Given an unsigned integer, reverse all bits of it and return the number with reversed bits. Input : n = 1Output : 2147483648  Explanation :… Read More
Given a Linked List and a number n, write a function that returns the value at the n’th node from the end of the Linked… Read More
Given a singly linked list, find the middle of the linked list. For example, if the given linked list is 1->2->3->4->5 then the output should… Read More
Given an array arr[] of size N-1 with integers in the range of [1, N], the task is to find the missing number from the… Read More
Given a positive integer, write a function to find if it is a power of two or not.Examples :  Input : n = 4 Output… Read More
Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop.… Read More

Start Your Coding Journey Now!