CJCoding With Joseph
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
402
String InterpolationA string variable `name` is set to `"Sam"`. Use string interpolation (a `$"..."`...
easy○ Not Started
Strings
Solve
403
Split a StringThe string `"apple,banana,cherry"` contains three items separated by commas. Spl...
easy○ Not Started
Strings
Solve
404
Join Strings with a SeparatorAn array holds the pieces `"a"`, `"b"`, and `"c"`. Use `string.Join` to combine ...
easy○ Not Started
Strings
Solve
405
Pad Left with ZerosThe string `"42"` should be shown as a 5-character number with leading zeros. Us...
easy○ Not Started
Strings
Solve
406
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
407
Convert to a Char ArrayConvert the string `"code"` into a `char` array with `ToCharArray`, then print t...
easy○ Not Started
Strings
Solve
408
Check If a String Is EmptyA string `s` is set to `""` (empty). Use `string.IsNullOrEmpty` to check it and ...
easy○ Not Started
Strings
Solve
409
Trim Leading WhitespaceThe string `" hi"` has three leading spaces. Use `TrimStart` to remove them, t...
easy○ Not Started
Strings
Solve
410
Trim Trailing WhitespaceThe string `"hi "` has three trailing spaces. Use `TrimEnd` to remove them. Pr...
easy○ Not Started
Strings
Solve
411
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
412
Count the SpacesCount how many space characters are in the string `"a b c"` and print the total:...
easy○ Not Started
Strings
Solve
413
Insert Text into a StringThe string `"Helloworld"` is missing a space. Use `Insert` to add a single space...
easy○ Not Started
Strings
Solve
414
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
415
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
416
Count ConsonantsCount the consonants in `"hello world"` — the alphabetic letters that are not vo...
medium○ Not Started
Strings
Solve
417
Remove All VowelsRemove every vowel (both cases of `a`, `e`, `i`, `o`, `u`) from `"Hello World"`,...
medium○ Not Started
Strings
Solve
418
Convert to Title CaseCapitalize the first letter of each word in `"hello world"`, leaving the remaini...
medium○ Not Started
Strings
Solve
419
Swap the CaseSwap the case of every letter in `"Hello World"` — uppercase becomes lowercase a...
medium○ Not Started
Strings
Solve
420
Extract the First WordRead one line of text and print only its first word — the part before the first ...
medium○ Not Started
Strings
Solve
421
Get the InitialsTake the first letter of each word in `"John Fitzgerald Kennedy"`, uppercase it,...
medium○ Not Started
Strings
Solve
422
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
423
Check for AnagramsTwo words are anagrams when they contain exactly the same letters rearranged. De...
hard○ Not Started
Strings
Solve
424
Run-Length EncodingCompress `"aaabbc"` using run-length encoding: replace each run of the same char...
hard○ Not Started
Strings
Solve
425
Find the Longest WordSplit `"I love programming challenges"` into words and print the single longest ...
hard○ Not Started
Strings
Solve
426
Caesar CipherEncrypt `"hello"` with a Caesar cipher that shifts each letter forward by 3 plac...
hard○ Not Started
Strings
Solve