## Remove the first and last character of each word in a string

Given the string the task is to remove the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given the string the task is to remove the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given the string, the task is to capitalise the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given an array of N integers. The task is to print the elements from the array which are greater than their immediate previous and next… Read More »

Given string str. The task is to check if the string contains consecutive letters and each letter occurs exactly once. Examples: Input: str = “fced”… Read More »

Given two integers x and y and where x is divisible by y. It can be represented in the form of a fraction x/y. The… Read More »

Given that a certain amount of money becomes T1 times itself in N1 years. The task is to find the number of years i.e. N2… Read More »

Given here is a rectangle of length l & breadth b, the task is to find the area of the biggest ellipse that can be… Read More »

Given an array arr[] that contain the lengths of n sides that may or may not form a polygon. The task is to determine whether… Read More »

Given an array arr[], the task is increment all the odd positioned elements by 1 and decrement all the even positioned elements by 1. Examples:… Read More »

Given a regular polygon of N sides with side length a. The task is to find the area of the Circle which inscribed in the… Read More »

Given an array arr[] of n elements, the task is to replace all the odd positioned elements with their cubes and even positioned elements with… Read More »

Given 2 endpoints (x1, y1) and (x2, y2) of a line, the task is to determine the number of squares of the unit area that… Read More »

Write a program to calculate double integral numerically. Example: Input: Given the following integral. where Output: 3.915905 Recommended: Please try your approach on {IDE} first,… Read More »

Given a string str, the task is to count how many times the keys will be pressed in total if there is a mobile like… Read More »

Given a NxN matrix. The task is to check if after reversing all of the rows of the given Matrix, the matrix remains same or… Read More »