File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
src/main/kotlin/g3101_3200
s3168_minimum_number_of_chairs_in_a_waiting_room
s3169_count_days_without_meetings
s3170_lexicographically_minimum_string_after_removing_stars
s3171_find_subarray_with_bitwise_and_closest_to_k Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3168_minimum_number_of_chairs_in_a_waiting_room
2
2
3
- // #Easy #String #Simulation #2024_06_06_Time_1_ms_(100.00%)_Space_41.9_MB_(67.53 %)
3
+ // #Easy #String #Simulation #2024_06_08_Time_148_ms_(86.52%)_Space_35_MB_(8.99 %)
4
4
5
5
import kotlin.math.max
6
6
Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3169_count_days_without_meetings
2
2
3
- // #Medium #Array #Sorting #2024_06_06_Time_11_ms_(99.96%)_Space_113.7_MB_(5.10 %)
3
+ // #Medium #Array #Sorting #2024_06_08_Time_733_ms_(97.59%)_Space_101.5_MB_(93.98 %)
4
4
5
5
class Solution {
6
6
fun countDays (days : Int , meetings : Array <IntArray >): Int {
Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3170_lexicographically_minimum_string_after_removing_stars
2
2
3
- // #2024_06_06_Time_29_ms_(99.93%)_Space_45.6_MB_(92.80%)
3
+ // #Medium #String #Hash_Table #Greedy #Stack #Heap_Priority_Queue
4
+ // #2024_06_08_Time_316_ms_(100.00%)_Space_40.9_MB_(89.58%)
4
5
5
6
class Solution {
6
7
fun clearStars (s : String ): String {
Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3171_find_subarray_with_bitwise_and_closest_to_k
2
2
3
3
// #Hard #Array #Binary_Search #Bit_Manipulation #Segment_Tree
4
- // #2024_06_06_Time_10_ms_(98.04%)_Space_56.3_MB_(79.06 %)
4
+ // #2024_06_08_Time_520_ms_(100.00%)_Space_63.6_MB_(96.15 %)
5
5
6
6
import kotlin.math.abs
7
7
import kotlin.math.min
You can’t perform that action at this time.
0 commit comments