LeetCode Question · Jul 2024 · Hyderabad

JPMorgan Chase & Co. – Cohort - India | Hyderabad - SWE | 2024 | OA

12 upvotes 2,278 views 7 replies

Question Details

Question 1: <img src=" width="500"/> <img src=" width="500"/> <img src=" width="500"/> public static int findNumOfPairs(List<Integer> a, List<Integer> b) { PriorityQueue<Integer> pq1 = new PriorityQueue<>(Collections.reverseOrder()); PriorityQueue<Integer> pq2 = new PriorityQueue<>(Collections.reverseOrder()); for(Integer i: a) pq1.offer(i); ...

Full Details

🔒

Unlock all JPMorgan questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a jpmorgan interview for a swe role during the oa round reported in 2024.

It covers the following topics: Heap, Queue, Strings .