We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Camel Case 4
- Discussions
Camel Case 4
Camel Case 4
Sort by
recency
|
525 Discussions
|
Please Login in order to post a comment
C# Solution
using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; class Solution { static void Main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
static string MethodAndVariableFormatting(string input) { var splitted = input.Split(" "); var caplitalizedWords = splitted.Skip(1).Select(s => CapitalizeFirstLetter(s)).ToArray(); var combined = splitted.Take(1).ToArray().Concat(caplitalizedWords); return string.Join("", combined);
}
Test cases didn't pass but when checked I typed the same test cases in the custom test case option it worked.
JS solution
Typescript solution: Please do start from main() and move your way into the inner helper functions to see how the problem was broken down
Hope this helps!
Kotlin Solution:
Had some trouble with the InputStreamReader, but after that everything went smoothly