Skip to content

Question about Ch 1.Arrays And Strings 3.URLify #36

@yueran1

Description

@yueran1

at line 27: int extendedLen = len + 2 * numOfSpaces;
I do not really understand why we should time 2 to the numOfSpaces? why not times 3? Cause length of space =1, and length of %20=3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions