We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dcc6b1 commit deb87ebCopy full SHA for deb87eb
src/hard/find_median_from_data_stream.rs
@@ -0,0 +1,20 @@
1
+#![allow(dead_code)]
2
+struct MedianFinder {}
3
+
4
+/**
5
+ * `&self` means the method takes an immutable reference.
6
+ * If you need a mutable reference, change it to `&mut self` instead.
7
+ */
8
+impl MedianFinder {
9
+ fn new() -> Self {
10
+ todo!()
11
+ }
12
13
+ fn add_num(&self, num: i32) {
14
15
16
17
+ fn find_median(&self) -> f64 {
18
19
20
+}
src/hard/mod.rs
@@ -1,3 +1,4 @@
+pub mod find_median_from_data_stream;
pub mod largest_rectangle_in_histogram;
pub mod median_of_two_sorted_arrays;
pub mod merge_k_sorted_lists;
0 commit comments