Skip to content

Stock buy & sell Maximum Profit #8

Description

@amarjeet2003gupta

The cost of stock on each day is given in an array A[] of size N. Find the maximum profit if a person can buy and then sell stock only one time.

Input :
10
100 120 140 310 50 150 1 250 4 40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions