From 665decd01c681bf8d39e800c4f039f443289cb2e Mon Sep 17 00:00:00 2001 From: passByReference Date: Sun, 23 Jun 2019 18:16:10 -0400 Subject: [PATCH] Update KthLargestInArray comment to reflect the function signature --- epi_judge_java/epi/KthLargestInArray.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epi_judge_java/epi/KthLargestInArray.java b/epi_judge_java/epi/KthLargestInArray.java index aa3d38284..92ed83892 100644 --- a/epi_judge_java/epi/KthLargestInArray.java +++ b/epi_judge_java/epi/KthLargestInArray.java @@ -4,8 +4,8 @@ import java.util.List; public class KthLargestInArray { // The numbering starts from one, i.e., if A = [3,1,-1,2] then - // findKthLargest(A, 1) returns 3, findKthLargest(A, 2) returns 2, - // findKthLargest(A, 3) returns 1, and findKthLargest(A, 4) returns -1. + // findKthLargest(1, A) returns 3, findKthLargest(2, A) returns 2, + // findKthLargest(3, A) returns 1, and findKthLargest(4, A) returns -1. @EpiTest(testDataFile = "kth_largest_in_array.tsv") public static int findKthLargest(int k, List A) { // TODO - you fill in here.