diff --git a/heapHash/KthLargestElementinanArray.cpp b/heapHash/KthLargestElementinanArray.cpp new file mode 100644 index 0000000..728f7f9 --- /dev/null +++ b/heapHash/KthLargestElementinanArray.cpp @@ -0,0 +1,17 @@ +class Solution { +public: + int findKthLargest(vector& nums, int k) { + priority_queueans; + for(int i=0;i