srikanth sankurthi wrote:which command is used ot view file in linux.
Luigi Plinge wrote:Nice solution Stefan. Here are my comments if you're interested.
In your regex, if you put a "+" after your bracket expression, i.e. "[\n\t ]+", this will match 1 or more instances, so you don't need the trim or filter for length > 0. I thought you had to double-escape control characters but it looks like you don't have to with \n or \r or \t (but you do with \s).
It's normal in Scala code to make your indents 2 spaces, because you get more nesting with closures, and chaining functions means that lines tend to be longer. 8 is certainly overkill.
If you use curly braces instead of parentheses in your for-statement, you don't need the semicolons.
I was a bit confused by your maxProduct method because "max" is a function defined in List, until I realised it was a variable. From what I've read, it's better to avoid using vars, unless you have a good reason.
Chandrasekaran SanthanaKrishnan wrote:anirudh jagithyala,
I did that exactly as you have said.
Its not working.
Rahul Sudip Bose wrote:
3 Is there any serious competition to MS in the "office" front ? Long time ago, open office did not seem good enough to me.
Sanjeev Ba wrote:
Tim Holloway wrote:If you lose the root password, that's a bigger problem, since you need to be logged in as root in order to issue the passwd command in most cases. To recover from that problem, you'd have to shutdown the machine, boot up into single-user mode (which doesn't require a login) and reset the root password. Then reboot into the normal operating runlevel.
Bhakthavatsala Reddy Boggula wrote:Hi Stefan Wagne, Thanks for your post ..but what are the code tags, please explain clearly.