geeksforgeeks
search icon
  • Courses
    Sale
  • Tutorials
  • Practice
  • Jobs
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
Check if Strings Are Rotations of Each OtherGiven two strings s1 and s2 of equal length, determine whether s2 is a rotation of s1.A string is said to be a rotation of another if it can be obtained by shifting some l... Read More
StringsDSArotation
Remove characters from the first string which are present in the second stringGiven two strings string1 and string2, remove those characters from the first string(string1) which are present in the second string(string2). Both strings are different a... Read More
StringsDSAAmazonZoho
Delete without head pointerGiven a node x of a singly linked list. Delete this node from the list without access to the head pointer.After deletion:The number of nodes in the linked list should decr... Read More
Linked ListDSALinked ListsloopMicrosoftAmazonSamsungGoldman SachsVisaKritikal Solutions
Node at Given Index in Linked ListGiven the head of a singly linked list and an integer k, return the data of the node present at the k-th position using 1-based indexing. Return -1 if the k-th node does n... Read More
Linked ListDSAGetNthLinked ListsPython-DSA
Print all the duplicate characters in a stringGiven a string s, the task is to identify all characters that appear more than once and print each as a list containing the character and its count. Examples:Input: s = "g... Read More
StringsDSAString Duplicates
Remove duplicates from a stringGiven a string s which may contain lowercase and uppercase characters. Remove all the duplicate characters from the string and find the resultant string. Note: The order o... Read More
StringsDSAfrequency-counting
Power Function ImplementationGiven two numbers b(base) and e(exponent), calculate the value of be.Examples: Input: b = 3.00000, e = 5Output: 243.00000Input: b = 0.55000, e = 3Output: 0.16638Input: b =... Read More
Divide and ConquerMathematicalDSAMicrosoftAmazonMakeMyTripModular Arithmeticmaths-power
Java Program for Sum the digits of a given numberGiven a number, find the sum of its digits.Example :Input : n = 687Output : 21Input : n = 12Output : 31. Iterative:Java // Java program to compute // sum of dig... Read More
Java
C Program for Sum the digits of a given numberGiven a number, find sum of its digits.Example :Input : n = 687Output : 21Input : n = 12Output : 31. Iterative:C // C program to compute sum of digits in // num... Read More
C Language
Sum of Digits of a NumberGiven a number n, find the sum of its digits.Examples : Input: n = 687Output: 21Explanation: The sum of its digits are: 6 + 8 + 7 = 21Input: n = 12Output: 3Explanation: Th... Read More
DSAnumber-digitscpp-puzzle
How will you print numbers from 1 to 100 without using a loop?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 = 0" till "i = 100". So, if we aren't allowed to u... Read More
DSAcpp-puzzle
Find maximum occurring character in a stringGiven string s, we need is to find the maximum occurring character in the string str.Examples:Input: s="geeksforgeeks"Output: 'e'Explanation: 'e' occurs 4 times in the st... Read More
StringsHashDSAMorgan Stanley
1

...

12124121251212612127
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Careers
  • Contact Us
  • Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Practice Problems
  • Blogs
  • Upskill Courses
  • Connect
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • GATE
  • School Subjects
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Data Science
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • MongoDB Certifications
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved