Problem 2216. Given an input string, generate a variable name out of it
Solution Stats
Problem Comments
-
3 Comments
ur test suites gave me headache..
u jumbled upper and lower case
When designing a program, Swapnali, it is important to follow a pattern, or else you may endup with spaghetti code (it will have so many rules for so many cases that no one will know what it does or why). This means that If words start with an uppercase letter, then all words must start with an uppercase letter. If the first letter of a phrase is in lowercase, then all first letters from all phrases should be in lowercase.
The pattern depends on the "special character".
Solution Comments
Show commentsProblem Recent Solvers29
Suggested Problems
-
Project Euler: Problem 5, Smallest multiple
1647 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
644 Solvers
-
Sum the numbers on the main diagonal
610 Solvers
-
369 Solvers
-
Delete 2nd and 5th column of Given 6*6 matrix
169 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!