Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Associative Containers in Action | Containers
C++ STL Containers and Algorithms

bookChallenge: Associative Containers in Action

Tarefa

Swipe to start coding

You are given a fixed string in the main function. Your task is to:

  • Implement a function std::string remove_duplicates(const std::string& input) that returns a string where all duplicate characters are removed, preserving the first occurrence order;
  • Print the result after calling remove_duplicates on the provided string.

Solução

solution.cpp

solution.cpp

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 5
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

Awesome!

Completion rate improved to 6.67

bookChallenge: Associative Containers in Action

Deslize para mostrar o menu

Tarefa

Swipe to start coding

You are given a fixed string in the main function. Your task is to:

  • Implement a function std::string remove_duplicates(const std::string& input) that returns a string where all duplicate characters are removed, preserving the first occurrence order;
  • Print the result after calling remove_duplicates on the provided string.

Solução

solution.cpp

solution.cpp

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 5
single

single

some-alt