Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Clean Up User Input | Text Formatting and Manual Parsing
C# Strings and Text Processing
セクション 2.  6
single

single

bookChallenge: Clean Up User Input

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

Write a function that takes a sentence and returns a cleaned, formatted version.

  • Remove extra spaces from the beginning and end of the sentence.
  • Replace all sequences of multiple spaces between words with a single space.
  • Replace every standalone "u" with "you" and "r" with "are", only when they appear as whole words.
  • Capitalize the first letter of the sentence and make all other letters lowercase.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt