SCJP 6. Learning more now.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Anooj Narvekar wrote:Well, y the term "difficult" but? The efficiency of code remains same anyways right?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
SCJP 6. Learning more now.
Do you really think 104 bytes is a lot of memory? Put six 0s on, and you might have a lot of memory.Rahul Sudip Bose wrote: . . . an array of 26+26 characters (a-z and A-Z) . . . will consume a "lot of" memory. . . .
SCJP 6. Learning more now.
Rahul Sudip Bose wrote:I tried the following approach and it worked. But i will get into trouble if the combination is k =-1 and if string has 'a'/'A' or if k = 1 and string has a z/Z inside it etc. How do i solve this problem ?
Campbell Ritchie wrote:
Do you really think 104 bytes is a lot of memory? Put six 0s on, and you might have a lot of memory.Rahul Sudip Bose wrote: . . . an array of 26+26 characters (a-z and A-Z) . . . will consume a "lot of" memory. . . .
SCJP 6. Learning more now.
Paul Clapham wrote:
Rahul Sudip Bose wrote:I tried the following approach and it worked. But i will get into trouble if the combination is k =-1 and if string has 'a'/'A' or if k = 1 and string has a z/Z inside it etc. How do i solve this problem ?
In other words, "What is the letter after Z" is your problem? That isn't a programming problem, it's a requirements problem. You have to decide what you want it to be. Only then can you program it. So it's up to you.
SCJP 6. Learning more now.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |