Java-CSES-Seach&Sorting

Правка en1, от just_a_smallfry, 2022-07-05 10:36:08

I was trying to solve This_CSES_problem , in which i tried 2 approaches...

1) Sorted first array , then applying binary search on this array (result — TLE )

2) Applied TreeMap , and returned map.floorKey() (result — TLE )

can you help me out?

First_approach
Second_Approach
Теги java, cses

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский just_a_smallfry 2022-07-05 10:36:08 2694 Initial revision (published)