Courses
Sale
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Flipkart
259+ articles
Goldman Sachs
249+ articles
Paytm
210+ articles
SAP Labs
209+ articles
Sapient
24 posts
Recent Articles
Sapient Interview Experience | 5+ years Experienced Java Developer
Last Updated: 23 July 2025
Overview of the ProcessThe interview process consisted of 5 rounds, including: Two Tests:The first test was an MCQ-based assessment focusing on core technical concepts.The...
read more
Interview Experiences
Sapient
Experiences-QnA
C Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
Efficient approach: If we are allowed to buy and sell only once, then we can use following algorithm. Maximum difference between two elements. Here we are allowed to buy a...
read more
C Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
C++ Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 1...
read more
C++ Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
Java Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 1...
read more
Java Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
Python Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 1...
read more
Python Programs
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
Javascript Program For Stock Buy Sell To Maximize Profit
Last Updated: 23 July 2025
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 1...
read more
JavaScript
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
Sapient Interview Experience for ASDE-1 (Off-Campus 2021)
Last Updated: 31 August 2021
Round 1 (Online Coding Round)The first round was an online coding round where I had to solve 2 coding questions. The questions I got were both basic DP-based questions.1. ...
read more