## The Lazy Caterer’s Problem

Given an integer n, denoting the number of cuts that can be made on a pancake, find the maximum number of pieces that can be… Read More »

## Python String Methods | Set 1 (find, rfind, startwith, endwith, islower, isupper, lower, upper, swapcase & title)

Some of the string basics have been covered in the below articles Strings Part-1 Strings Part-2 The important string methods will be discussed in this… Read More »

## Forward List in C++ | Set 2 (Manipulating Functions)

Forward List in C++ | Set 1 (Introduction and Important Functions) More functions are discussed in this article Some of the operations other than insertions… Read More »

## National Instruments Interview Experience | Set 5 (On-Campus – Internship)

Round 1(Written): Eligibility: All circuit branches. This was a written round consisting of both aptitude and technical questions.There were only 10 questions, 90 minutes duration.… Read More »

## Date class in Java (With Examples)

The class Date represents a specific instant in time, with millisecond precision. The Date class of java.util package implements Serializable, Cloneable and Comparable interface. It… Read More »

## Program to convert a given number to words | Set 2

Write code to convert a given number into words. Examples: Input: 438237764 Output: forty three crore eighty two lakh thirty seven thousand seven hundred and… Read More »

## Count digits in a factorial | Set 2

Given an integer n (can be very large), find the number of digits that appear in its factorial, where factorial is defined as, factorial(n) =… Read More »

## Count digits in a factorial | Set 1

Given an integer n, find the number of digits that appear in its factorial, where factorial is defined as, factorial(n) = 1*2*3*4……..*n and factorial(0) =… Read More »

## Different ways for Integer to String Conversions In Java

Convert using Integer.toString(int) The Integer class has a static method that returns a String object representing the specified int parameter. Syntax : public static String… Read More »

## Forward List in C++ | Set 1 (Introduction and Important Functions)

Forward list in STL implements singly linked list. Introduced from C++11, forward list are useful than other containers in insertion, removal and moving operations (like… Read More »

## Remove duplicates from an array of small primes

Given an array of primes such that the range of primes is small. Remove duplicates from the array. Examples: Input : arr[] = {3, 5,… Read More »

## Bind function and placeholders in C++

Sometimes we need to manipulate the operation of a function according to the need, i.e changing some arguments to default etc. Predefining a function to… Read More »

## Code to generate the map of India (with explanation)

Given a obfuscated code that generates the map of India, explain its working. The following code when executed generates the map of India – #include… Read More »

## Test Case Generation | Set 3 (Unweighted and Weighted Trees)

Generating Random Unweighted Trees Since this is a tree,  the test data generation plan is such that no cycle gets formed. The number of edges… Read More »

## System.exit() in Java

The java.lang.System.exit() method exits current program by terminating running Java virtual machine. This method takes a status code. A non-zero value of status code is… Read More »