New course! Every coder should learn Generative AI!
Try a free lesson+ 64
+ 55
My try in JS : 😊😊😊
https://code.sololearn.com/W58ycFbi74Gw/?ref=app
+ 45
I did it in one line :D
https://code.sololearn.com/cCp6Q8G7fa5l/?ref=app
+ 42
Here's in one line (stream) :
https://code.sololearn.com/cpNPktGGE2xQ/?ref=app
+ 35
Here's my C# implementation! ✌
LINQ One-Liner〰
string.Join(" ",
str.Split(' ')
.Select(w => string.Concat(
char.ToUpper(w[0]),
w.Substring(1))))
It has been awhile I didn't submit new challenge. Hopefully you all will enjoy this beautifully crafted LINQ solution~ ❤
https://code.sololearn.com/c11o3K4BPaYu/?ref=app
+ 31
https://code.sololearn.com/cLbbX2VbBewa/?ref=app
+ 29
In HTML only:
<p style="text-transform:capitalize">i love programming</p>
+ 29
@SRK , u can turn off notification from this app or just unfollow this thread by clicking on blue star at left bottom corner of the question box
+ 28
https://code.sololearn.com/cFjADc99qoTN/?ref=app
+ 27
And one in C++...
https://code.sololearn.com/cGSvqZ9q8GAu/#cpp
+ 23
one liner and easy in ruby.......
my efforts...
special thanks to "Gordie"..
https://code.sololearn.com/coDNN11eKES9/?ref=app
+ 19
https://code.sololearn.com/cX14ZwwXfvzS/?ref=app
+ 17
Mmm Ok. I'll try it
+ 17
// My try in js
var word = prompt("Enter words: ", "I love programming")
var words = new Array
words = word.split(" ")
for(var i = 0; i < words.length; i++){
words[i][0].toUpper()
}
resword = words.join("")
alert(words)
+ 17
Sorry for the python oneliners overload
https://code.sololearn.com/ck2SE3dlCve0/?ref=app
+ 17
https://code.sololearn.com/cd8vasnG2952/?ref=app