Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 427 Bytes

File metadata and controls

18 lines (14 loc) · 427 Bytes

String With Difference Of Every Two Consecutive Characters

Easy


  1. You are given a string that contains only lowercase and uppercase alphabets.
  2. You have to form a string that contains the difference of ASCII values of every two consecutive characters between those characters.

Example 1:

Input:  abecd
Output:  a1b3e-2c1d

Constraints:

1 <= length of string <= 1000