Skip to content

stc::list problem #87

Closed Answered by tylov
xiaoluobo134 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorting is supported because it is a "heavy" operation, and it is worth converting the list into an array, quicksort it and put result back into the list. For lower_bound, you should export the list to a vector, sort it and apply lower_bound on that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tylov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants