C Program to Reverse Bits of a Number – Bit Algorithm – Given an unsigned integer, reverse all bits of it and return the number with reversed bits.
Coding
Latest Articles and Errors& Fixes fo popular programming languages like HTML,CSS, PHP, Javascript, Angularjs and more
Linearity of Expectation Randomized Algorithms – This post is about mathematical concepts like expectation linearity of expectation It covers required topic
C++ Programming Multiply two polynomials – Mathematical Algorithms – A simple solution is to one by one consider every term of first polynomial and multiply
C Programming Check for Integer Overflow – Bit Algorithm – The solution of casting to long and adding to find detecting the overflow is not allowed.
C++ Programming – How to check if an instance of 8 puzzle is solvable – Given a 3×3 board with 8 tiles (every tile has one number from 1 to 8) and one empty
Python Programming – Cutting a Rod – Dynamic Programming A rod of length n inches and an array of prices that contains prices of all pieces of size small
Java Programming – Cutting a Rod – Dynamic Programming A rod of length n inches and an array of prices that contains prices of all pieces of size small
C++ Programming – Cutting a Rod – Dynamic Programming Given a rod of length n inches and an array of prices that contains prices of all pieces of size small
Python programming Find the Number Occurring Odd Number of Times – Bit Algorithm – Given array of positive integers. All numbers occur even number of times
C Programming Draw a circle without floating point arithmetic – Mathematical Algorithms – Following program uses a simple concept Let the radius be r.