Skip to content
Gblog 100 Days of Code – A Complete Guide For Beginners and Experienced
Do you want to become a successful software developer and dreaming about getting into the big tech companies? Are you someone who is already working… Read More
Given a set of strings, find the longest common prefix.  Input : {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output : "gee" Input : {"apple", "ape", "april"} Output… Read More
Given a set of strings, find the longest common prefix.  Examples:  Input : {“geeksforgeeks”, “geeks”, “geek”, “geezer”} Output : "gee" Input : {"apple", "ape", "april"}… Read More
Consider below list where each digit from 1 to 9 maps to few characters. 1 -> ['A', 'B', 'C'] 2 -> ['D', 'E', 'F'] 3… Read More
In Linux Virtualization – Chroot Jail article, we discussed about kernel namespaces and process jailing. To understand this article, you may not need to read… Read More
Dinoo is worried that he might have a rare disease. He decides to get himself  tested, and suppose that the testing methods for this disease… Read More
Given a word, find a lexicographically smaller permutation of it. For example, lexicographically smaller permutation of “4321” is “4312” and the next smaller permutation of… Read More
Prerequisite: Minimax Algorithm in Game TheoryAs seen in the above article, each leaf node had a value associated with it. We had stored this value… Read More
Given an array of n numbers, find the LCM of it.   Example: Input : {1, 2, 8, 3} Output : 24 Input : {2, 7,… Read More
For all those who aspire to excel in competitive programming, only having a knowledge about containers of STL is of less use till one is… Read More
Given a string and a positive integer d, rearrange characters of the given string such that the same characters become at-least d distance away from… Read More
Given an array, find the number of subarrays whose sum is even. Example :  Input : arr[] = {1, 2, 2, 3, 4, 1} Output… Read More
Regular Expression in Python with Examples | Set 1The module re provides support for regular expressions in Python. Below are main methods in this module.… Read More
In C++, we use the sizeof() operator to find the size of desired data type, variables, and constants. It is a compile-time execution operator. We… Read More
Recently i had an interview with 1. Tell me about yourself. 2. Why do you want to switch. 3. Why should we hire you.… Read More
We will discuss about four file hacks listed as below- Rename – Rename a file using C/C++ Remove – Remove a file using C/C++ File… Read More

Start Your Coding Journey Now!