CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
179
String LengthA string is given. Print how many characters it has using `.Length`. For "Hello...
easy○ Not Started
Strings
Solve
180
To UppercaseA string is given. Print it in all uppercase using `.ToUpper()`. For "hello" th...
easy○ Not Started
Strings
Solve
181
To LowercaseA string is given. Print it in all lowercase using `.ToLower()`. For "SHOUT" th...
easy○ Not Started
Strings
Solve
182
First CharacterA string is given. Print its first character using indexing `[0]`. For "Hello" ...
easy○ Not Started
Strings
Solve
183
Last CharacterA string is given. Print its last character. For "Hello" the program prints o....
easy○ Not Started
Strings
Solve
184
SubstringA string is given. Print its first 3 characters using `.Substring(0, 3)`. For "...
easy○ Not Started
Strings
Solve
185
Contains a SubstringA string is given. Print whether it contains "ell" using `.Contains` (prints Tru...
easy○ Not Started
Strings
Solve
186
Replace CharactersA string is given. Replace every 'l' with 'L' using `.Replace` and print the res...
easy○ Not Started
Strings
Solve
187
Index of a CharacterA string is given. Print the index of the first 'e' using `.IndexOf`. For "Hell...
easy○ Not Started
Strings
Solve
188
Starts WithA string is given. Print whether it starts with "He" using `.StartsWith` (prints...
easy○ Not Started
Strings
Solve
189
Ends WithA string is given. Print whether it ends with "lo" using `.EndsWith` (prints Tru...
easy○ Not Started
Strings
Solve
190
Trim WhitespaceA string with surrounding spaces is given. Print it with the leading and trailin...
easy○ Not Started
Strings
Solve
191
Concatenate Two StringsTwo strings are given. Print them joined with a space between. For "Hello" and ...
easy○ Not Started
Strings
Solve
192
Repeat a CharacterUse the `new string(char, count)` constructor to print the '*' character repeate...
easy○ Not Started
Strings
Solve
193
Build a Full NameA first and last name are given. Use string interpolation to print the full name...
easy○ Not Started
Strings
Solve
194
Compare Two StringsTwo strings are given. Print whether they are equal using `==` (prints True/Fals...
easy○ Not Started
Strings
Solve
297
How Long Is the Word?Every string keeps track of how many characters it holds through its Length prop...
easy○ Not Started
Strings
Solve
298
Shout It in UppercaseStrings can produce an all-capitals copy of themselves using the ToUpper method....
easy○ Not Started
Strings
Solve
299
Quiet It Down to LowercaseJust as ToUpper makes a capitalized copy of a string, ToLower makes an all-lower...
easy○ Not Started
Strings
Solve
300
Grab the First Few LettersThe Substring method lets you pull out a smaller piece of a string. When you cal...
easy○ Not Started
Strings
Solve
301
Swap Cats for DogsThe Replace method returns a new string in which every occurrence of one piece o...
easy○ Not Started
Strings
Solve
302
Does It Have an At Sign?The Contains method checks whether a string includes a smaller piece of text and...
easy○ Not Started
Strings
Solve
303
Join First and Last NameYou can glue strings together with the + operator; this is called concatenation....
easy○ Not Started
Strings
Solve
492
String InterpolationA string variable `name` is set to `"Sam"`. Use string interpolation (a `$"..."`...
easy○ Not Started
Strings
Solve
493
Split a StringThe string `"apple,banana,cherry"` contains three items separated by commas. Spl...
easy○ Not Started
Strings
Solve
494
Join Strings with a SeparatorAn array holds the pieces `"a"`, `"b"`, and `"c"`. Use `string.Join` to combine ...
easy○ Not Started
Strings
Solve
495
Pad Left with ZerosThe string `"42"` should be shown as a 5-character number with leading zeros. Us...
easy○ Not Started
Strings
Solve
496
Pad Right with SpacesPad the string `"Hi"` on the right with spaces to a total width of 5, then appen...
easy○ Not Started
Strings
Solve
497
Convert to a Char ArrayConvert the string `"code"` into a `char` array with `ToCharArray`, then print t...
easy○ Not Started
Strings
Solve
498
Check If a String Is EmptyA string `s` is set to `""` (empty). Use `string.IsNullOrEmpty` to check it and ...
easy○ Not Started
Strings
Solve
499
Trim Leading WhitespaceThe string `" hi"` has three leading spaces. Use `TrimStart` to remove them, t...
easy○ Not Started
Strings
Solve
500
Trim Trailing WhitespaceThe string `"hi "` has three trailing spaces. Use `TrimEnd` to remove them. Pr...
easy○ Not Started
Strings
Solve
501
Character to ASCII CodeThe `char` value `'A'` has an ASCII code. Cast it to an `int` to reveal that cod...
easy○ Not Started
Strings
Solve
502
Count the SpacesCount how many space characters are in the string `"a b c"` and print the total ...
easy○ Not Started
Strings
Solve
503
Insert Text into a StringThe string `"Helloworld"` is missing a space. Use `Insert` to add a single space...
easy○ Not Started
Strings
Solve
504
Remove Part of a StringThe string `"Hello World"` should keep only its first word. Use `Remove` startin...
easy○ Not Started
Strings
Solve
195
Count the VowelsA word is given. Count how many of its letters are vowels (a, e, i, o, u) and pr...
medium○ Not Started
Strings
Solve
196
Count a Specific CharacterA word is given. Count how many times the letter 'l' appears and print the count...
medium○ Not Started
Strings
Solve
197
Reverse a StringA word is given. Build its reverse with a loop (do not use a built-in reverse) a...
medium○ Not Started
Strings
Solve
198
Count WordsA sentence is given. Print how many words it has by splitting on spaces. For "t...
medium○ Not Started
Strings
Solve
199
Capitalize First LetterA lowercase word is given. Print it with only the first letter capitalized. For...
medium○ Not Started
Strings
Solve
200
Count Uppercase LettersA string is given. Count how many of its characters are uppercase letters and pr...
medium○ Not Started
Strings
Solve
304
Build the Uppercase InitialsCombine a few string tools to build someone's initials. You are given two lowerc...
medium○ Not Started
Strings
Solve
305
Capitalize the First LetterTake a fully lowercase word and capitalize only its first letter, leaving the re...
medium○ Not Started
Strings
Solve
306
Censor the Secret WordCombine Replace and Contains to censor sensitive text and then verify your work....
medium○ Not Started
Strings
Solve
505
Count Digits in a StringRead one line of text from input and print how many of its characters are digits...
medium○ Not Started
Strings
Solve
506
Count ConsonantsCount the consonants in `"hello world"` — the alphabetic letters that are not vo...
medium○ Not Started
Strings
Solve
507
Remove All VowelsRemove every vowel (both cases of `a`, `e`, `i`, `o`, `u`) from `"Hello World"`,...
medium○ Not Started
Strings
Solve
508
Convert to Title CaseCapitalize the first letter of each word in `"hello world"`, leaving the remaini...
medium○ Not Started
Strings
Solve
509
Swap the CaseSwap the case of every letter in `"Hello World"` — uppercase becomes lowercase a...
medium○ Not Started
Strings
Solve
510
Extract the First WordRead one line of text and print only its first word — the part before the first ...
medium○ Not Started
Strings
Solve
511
Get the InitialsTake the first letter of each word in `"John Fitzgerald Kennedy"`, uppercase it,...
medium○ Not Started
Strings
Solve
512
Count Substring OccurrencesCount how many times the substring `"ab"` appears in `"abcabcab"`, searching lef...
medium○ Not Started
Strings
Solve
201
Is It a PalindromeA word is given. Print 'Yes' if it reads the same forwards and backwards, otherw...
hard○ Not Started
Strings
Solve
202
Most Frequent CharacterA string of lowercase letters is given. Print the character that appears most of...
hard○ Not Started
Strings
Solve
203
Reverse the WordsA sentence is given. Print its words in reverse order (the words themselves stay...
hard○ Not Started
Strings
Solve
513
Check for AnagramsTwo words are anagrams when they contain exactly the same letters rearranged. De...
hard○ Not Started
Strings
Solve
514
Run-Length EncodingCompress `"aaabbc"` using run-length encoding: replace each run of the same char...
hard○ Not Started
Strings
Solve
515
Find the Longest WordSplit `"I love programming challenges"` into words and print the single longest ...
hard○ Not Started
Strings
Solve
516
Caesar CipherEncrypt `"hello"` with a Caesar cipher that shifts each letter forward by 3 plac...
hard○ Not Started
Strings
Solve