DSA-Bootcamp-Java icon indicating copy to clipboard operation
DSA-Bootcamp-Java copied to clipboard

Subsequence-> How can I skip strings "Apple" and "apple" ? Please help.

Open abhisehk-dev opened this issue 3 years ago • 1 comments

DSA-Bootcamp-Java/lectures/14-recursion/code/src/com/kunal/strings/SubSeq.java in this code, if we run using the string "bacApple" it will not skip the "Apple" because of the uppercase of apple, how do I skip that using the same code?

abhisehk-dev avatar Sep 19 '22 02:09 abhisehk-dev

if you want to skip the sub sequence "Apple" and "apple" from a loop then i think you can compare subsequence string with "Apple" ||"apple" if match the continue else do your job

shibu-g avatar Sep 19 '22 16:09 shibu-g