Update geometry/graham_scan_functions.hpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Lajat5 2021-11-06 12:18:04 +05:30 committed by GitHub
parent a16bf9b6ec
commit e89e4c8ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ namespace geometry::grahamscan {
* @param S Stack to be used for the process. * @param S Stack to be used for the process.
* @returns @param Point Co-ordinates of the Point <int, int> * @returns @param Point Co-ordinates of the Point <int, int>
*******************************************************************************/ *******************************************************************************/
Point nextToTop(const std::stack<Point> &S) { Point nextToTop(std::stack<Point> S) {
Point p = S.top(); Point p = S.top();
S.pop(); S.pop();
Point res = S.top(); Point res = S.top();