Shubham Chaudhari’s Post

View profile for Shubham Chaudhari, graphic

Studying B.Tech CSE with specialization in Artificial Intelligence and Machine Learning at Vellore Institute of Technology

GFG160 Day 8: Today's problem: Given an array prices[] of length n, representing the prices of the stocks on different days. The task is to find the maximum profit possible by buying and selling the stocks on different days when at most one transaction is allowed. Here one transaction means 1 buy + 1 Sell. If it is not possible to make a profit then return 0. Note: Stock must be bought before being sold. #gfg160 #geekstreak2024 #DrGViswanathan #100daysofcode #VITBhopal #VITBhopalLions GeeksforGeeks

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics