Difference between Sub array and Subsequence
  • Sub string/Sub array:A substring or sub array is a contiguous sequence of characters within a string or an array.
  • Subsequence-A subsequence is an array that can be derived from another array by deleting some or no elements without changing the order of the remaining elements.
ContiguousYesYesNo
Order preservedYesYesYes
Specific typeArrayStringAny sequence
Gap allowedNoNoYes
Comments (0)