Skip to content
Gblog Write It Up: Share Your Interview Experiences
Since we are receiving so many interview experiences, we have great news to share with you. Therefore, we are moving this event’s date up to… Read More
Write a GetNth() function that takes a linked list and an integer index and returns the data value stored in the node at that index… Read More
Algorithm: Let input string be "geeksforgeeks" 1: Construct character count array from the input string. count['e'] = 4 count['g'] = 2 count['k'] = 2 …… 2: Print all the indexes from the constructed array which have value greater than 0.
C++ // CPP program to remove duplicate character // from character array and print in sorted // order #include <bits/stdc++.h> using namespace std;   char… Read More
  Given two integers x and n, write a function to compute xn. We may assume that x and n are small and overflow doesn’t… Read More
Given a number, find sum of its digits.Example :   Input : n = 687 Output : 21 Input : n = 12 Output : 3… Read More
Given a number, find sum of its digits.Example :   Input : n = 687 Output : 21 Input : n = 12 Output : 3… Read More
Given a number, find sum of its digits. Examples :  Input : n = 687 Output : 21 Input : n = 12 Output :… Read More
If we take a look at this problem carefully, we can see that the idea of “loop” is to track some counter value, e.g., “i… Read More
  Write an efficient function to return maximum occurring character in the input string e.g., if input string is “test” then function should return ‘t’. … Read More
Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop.… Read More

Start Your Coding Journey Now!