SUBARRAY AND SUBSTRING PROBLEMS

CAN ANY ONE SUGGEST ME GOOD SUBARRAY ,SUBSTRING AND SUBSEQUENCE PROBLEMS FOR PRACTICE TO GET MYSELF GOOD AT THEM.

Here you go : -

1)Sum of all Subarrays | Set 1 - GeeksforGeeks

2)XOR of all subarray XORs | Set 1 - GeeksforGeeks

3)Mathison and the funny subarray | Practice Problems

3 Likes

What is difference between subarray and subsequence?
(is it that in subsequence sequence matters and in subarray sequence doesn’t matter or vice versa)?

Subarray is Contagious Part of an array
Substring is Contagious part of a string
Subseqence is Non-Contagious part of array or string.It is a sequence that can be generated from another sequence without changing order
For Further refer:-

1 Like