## Sort the words in lexicographical order in Python

Given a strings, we need to sort the words in lexicographical order (dictionary order). Examples : Input : “hello python program how are you” Output… Read More »

Given a strings, we need to sort the words in lexicographical order (dictionary order). Examples : Input : “hello python program how are you” Output… Read More »

In the early days, adding a video to a webpage was a real challenge since one had to convert the videos to different formats to… Read More »

Since the release of HTML5, audios can be added to webpages using the “audio” tag. Previously audios could be only played on webpages using web… Read More »

Hill Climbing is heuristic search used for mathematical optimization problems in the field of Artificial Intelligence . Given a large set of inputs and a… Read More »

Using srand() and rand() function in C, a simple but interesting game can be made. This game is called “Guess Game” . Rules of the… Read More »

Earlier, the webpages used to comprised of only texts, which made them appear quite boring and uninteresting. Fortunately, it wasn’t long enough that the ability… Read More »

Before HTML 5 came into existence, videos could only be played in a browser using a plug in like flash. But after the release of… Read More »

Given an array of non-negative integers. We need to construct given array from an array of all zeros. We are allowed to do following operation.… Read More »

Given a string str and a character x, find last index of x in str. Examples : Input : str = “geeks”, x = ‘e’… Read More »

There are several primality test available to check whether the number is prime or not like Fermat’s Theorem, Miller-Rabin Primality test and alot more. But… Read More »

What is a Flowchart? Flowchart is a graphical representation of an algorithm. Programmers often use it as a program-planning tool to solve a problem. It… Read More »

Given three distinct numbers a, b and c find the number with a value in middle. Examples : Input : a = 20, b =… Read More »

Three players P1, P2 and P3 are playing a game. But at a time only two players can play the game, so they decided, at… Read More »

Given the total number of bricks T, find the number of stair steps that can be formed by using given bricks such that if step… Read More »