Given n, we need to find sum of 1*1! + 2*2! + ……..+ n*n! Examples: Input: 1 Output: 1 Input: 3 Output: 23 1 *… Read More »

#
All Easy Articles

Given n, we need to find sum of 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)! Examples: Input: 1 Output: 2 Input: 3 Output: 242 We may… Read More »

Given two strings s1 and s2, check if s1 is a suffix of s2. Or in simple words we need to find whether string s2… Read More »

Given a number n and k (1 <= k <= 32), find value of k-th bit in binary representation of n. Bits are numbered from… Read More »

Given a string, write a recursive program to reverse it. Recommended: Please try your approach on {IDE} first, before moving on to the solution. Method… Read More »

Given two arrays among which one is almost sorted with one element being in the wrong position making the array unsorted, the task is to… Read More »

The std::is_pointer template is an inbuilt template in C++ STL which is used to check the type of pointer. It is defined in header file… Read More »

llCommonly used methods: q method explanation isIndeterminate() Gets the value of the property indeterminate. getProgress() Gets the value of the property progress. setProgress(double v) Sets… Read More »

Round 1: Telephonic Round There is a university with certain sets of courses. You can take a course in any semester but you need to… Read More »

Given a string S consisting of only characters ‘a’ and ‘b’, and an integer N. The string S is added N times to obtain string… Read More »

Given a string of lowercase alphabets, the task is to find indexes of a substring with given power. Assume power of a to be 1,… Read More »

CSS border properties allows us to set the style, color and width of the border. Note : Different properties can be set for all the… Read More »

Suppose we have four variables a, b, c, d and we want to perform swapping of these variables in the following manner a = b,… Read More »

We all know that code of every function resides in memory and so every function has an address like all others variables in the program.… Read More »

For the given length n, find all n-length Strobogrammatic numbers. Strobogrammatic Number is a number whose numeral is rotationally symmetric so that it appears the… Read More »

Given a non-negative integer n. The problem is to invert the bits of n and print the number obtained after inverting the bits. Note that… Read More »

Prerequisite – Paging, Page table entries, Segmentation Most of the Operating Systems implement a separate pagetable for each process, i.e. for ‘n’ number of processes… Read More »

Real time system means that the system is subjected to real time, i.e., response should be guaranteed within a specified timing constraint or system should… Read More »

Given two values n1 and n2 (where n1 < n2) and a root pointer to a Binary Search Tree. Print all the keys of tree… Read More »

Given an unsigned number, find the maximum number that could be formed by using the bits of the given unsigned number. Examples: Input : 1… Read More »