## Count of different ways to express N as the sum of 1, 3 and 4

Given N, count the number of ways to express N as sum of 1, 3 and 4. Examples: Input : N = 4 Output :… Read More »

Featured Article

Given N, count the number of ways to express N as sum of 1, 3 and 4. Examples: Input : N = 4 Output :… Read More »

Featured Article

Given a string s that may have duplicate characters. Find out the lexicographic rank of s. s may consist lower as well as upper case… Read More »

Featured Article

Given a positive integer n. The problem is to print numbers in the range 1 to n having first and last bits as the only… Read More »

SQL injection is a technique used to exploit user data through web page inputs by injecting SQL commands as statements. Basically, these statements can be… Read More »

pieslice() draws and fills a pie slice with center at (x, y) and given radius r. The slice travels from s_angle to e_angle which are… Read More »

The toPrecision() method in Javascript is used to format a number to a specific precision or length. If the formatted number requires more number of… Read More »

Prerequisite – ER Model A relationship between two entities of similar entity type is called a recursive relationship. Here the same entity type participates more… Read More »

Round 1: I had applied for TCS off campus drive in October. Usually, the off-campus drive happens every 3 months for TCS. There were about… Read More »

There are some point of time when we need to calculate the product of all elements in an array. The most basic way to do… Read More »

Given a function random01Generator() that gives you randomly either 0 or 1, implement a function that utilizes this function and generate numbers between 0 and… Read More »

Round 1: Online Written Test It was written test conducted on moodle environment. It consists of two section. First section was math aptitude around 30… Read More »

At many instances, we get a need to access an object like an iterator. One way is to form a generator loop but that extends… Read More »

Sahil has got a challenge problem from his friend Akhil. Sahil has to find all values of n for which one can fill an n… Read More »

Maps are associative containers that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values… Read More »

Deque or Double-ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are… Read More »

Write a program to determine the power of a lens . Power of a lens is its ability to bend light . For a convex… Read More »

Create a digital stopwatch program in C which runs on linux base system. keyboardhit() function simply stands for keyboard hit. After pressing a key it… Read More »