geeksforgeeks
  • Courses
  • Tutorials
  • Interview Prep
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
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. The task is to remove all duplicate characters from the string and find the resultant string. Note: ... 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

...

12123121241212512126
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 7th 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
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved