•  
      tasks #45156 Removing i-th character from a string
    #45156
    Ritish Singh (ritish31)
    2022-08-16 08:34
    2022-08-16 08:34
    Details
    Removing i-th character from a string
    We will split the string into two halves, one before index i and the other after index i. Then we can join these two strings to get the string that will not have the i-th character. To split the string we will use the concept of slicing. Slicing specifies how to slice a sequence into smaller objects where the starting and ending index is specified by us.
    We have sliced the string into two substrings and stored each substring in another variable then we have joined the two substrings using the concatenation operator (+). Since, indexing in a string starts with 0, to remove i-th character, we have to pass i-1 as an index in our function.
    5 - Medium
    State of Progress
    2022-05-13
    100
    2022-05-15
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-14
    Closed
    Attachments
    References
    References list is empty