Class Utils


  • public final class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.Comparable<T>>
      java.util.List<T>
      findTopKHeap​(java.util.List<T> arr, int k)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • findTopKHeap

        public static <T extends java.lang.Comparable<T>> java.util.List<T> findTopKHeap​(java.util.List<T> arr,
                                                                                         int k)