File tree Expand file tree Collapse file tree 7 files changed +33
-16
lines changed
Expand file tree Collapse file tree 7 files changed +33
-16
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,10 @@ Resolving problems of LeetCode in RustLang.
77
88## Solusions
99
10- * [ 7. Reverse Integer] ( ./reverse_integer/README.md )
11- * [ 15. 3 Sum] ( ./three_sum/README.md )
10+ * [ 7. Reverse Integer] ( ./reverse_integer/src/lib.rs )
11+ * [ 15. 3 Sum] ( ./three_sum/src/lib.rs )
12+ * [ 215. Kth Largest Element in an Array] ( ./kth_largest/src/lib.rs )
13+
14+ ## References
15+
16+ * [ LeetcodeTop] ( https://github.com/afatcoder/LeetcodeTop ) : Top Hit Leetcode problems in interviews.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- #![ allow( dead_code) ]
2-
31/*!
4- * It works but slower than:
5- * ```rust,ignore
2+ * # 215. Kth Largest Element in an Array
3+ *
4+ * * [Problem link](https://leetcode.com/problems/kth-largest-element-in-an-array/)
5+ *
6+ * ## Other Solutions
7+ *
8+ * The solution works but slower than sort all elements and get by index in Rust like below.
9+ *
10+ * ```rust,no_run
11+ * # struct Solution {}
12+ *
613 * impl Solution {
714 * pub fn find_kth_largest(nums: Vec<i32>, k: i32) -> i32 {
815 * let mut nums = nums;
1118 * }
1219 * }
1320 * ```
14- */
21+ */
22+
23+ #![ allow( dead_code) ]
1524
1625struct Solution { }
1726
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ /*!
2+ * # 7. Reverse Integer
3+ *
4+ * * [Problem link](https://leetcode.com/problems/reverse-integer/)
5+ */
6+
17#![ allow( dead_code) ]
28
39struct Solution { }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ /*!
2+ * # 15. 3 Sum
3+ *
4+ * * [Problem link](https://leetcode.com/problems/3sum/)
5+ */
6+
17#![ allow( dead_code) ]
28
39struct Solution { }
You can’t perform that action at this time.
0 commit comments