ChallengeRocket
  • Product
    • Recruitment Challenges
    • Skill Assessment
    • Direct Hire
    • Hackathons
    • Intern Challenges
  • Challenges
  • Case-studies
  • Employers
  • Log in
  • Join talent network
  • Book demo
Menu
  • Home
  • Challenges
  • Character Frequency

Character Frequency

Character Frequency

Before you start the test, check out our tutorial challenge

~5MIN
Start: Nov 19, 2019
SKILL PRACTICE CHALLENGE
  • Challenge outline
  • Tips
  • Leaderboard
Character Frequency
  • Challenge outline
  • Tips
  • Leaderboard

Challenge overview

Hello and welcome to the challenge!


Write the function which takes the string s and the separator sep, and next returns the string created by replacing each character in s with a number of times that character occured in s and separating the numbers with the string sep.

Example

translate('abcc','-') -> '1-1-2-2'


You can solve this programming contest in C++, C#, Ruby, JavaScript, Python and many other languages. If you want, you can also take part in other Challenges. Below you can find some of them:


  • Proper Fractions
  • Nice Colors Only!
  • Smaller Number With The Same Digits


Have fun and good luck! :)



ChallengeRocket
Tech talent
Challenges Blog Find jobs Employers
Companies
Business HR Blog Pricing
Challengerocket
FAQ EU Join Us Contact Us
Copyright © 2023 ChallengeRocket. All rights reserved.
Privacy Terms and Conditions Service status

Let’s talk

Proven effectiveness - get up to x3 more candidates and shorter recruitment time.

In view of your consent, the data you provide will be used by ChallengeRocket Sp. z o.o. based in Rzeszów (address: Pl. Wolności 13/2, 35-073, +48 695 520 111, office@challengerocket.com) to send messages as part of the newsletter subscription. Don't worry, only us and the entities that support us in our activities will have access to data. All information on data processing and your rights can be obtained by contacting us or at www.challengerocket.com in the Privacy Policy tab.

We will reply within 2 business days.

Log in


Forgot your password?

OR
Don’t have an account?
Create a candidate account or a company account

Log in

Forgot your password?

Create a candidate account

Already have an account?
Log in
OR
  • At least 10 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not a candidate?  Sign up as an employer

Reset your password

Remember your password? Log in Log in for business

Create an employer account

Sign up for free.
Select the best plan to publish job ofers & challenges.

Company name introduced here will be visible on your job ads.
  • At least 10 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not an employer?  Sign up as a candidate