Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bb0116f

Browse files
0.2.11
1 parent 76d075f commit bb0116f

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v0.2.11
2+
added code 14 and transfered `&#ge;``&#le` and `'`.
3+
## v0.2.10
4+
add code 15
5+
16
## v0.2.9
27
update ac status after submit successfully
38

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ path = "src/bin/lc.rs"
44

55
[package]
66
name = "leetcode-cli"
7-
version = "0.2.10"
7+
version = "0.2.11"
88
authors = ["clearloop <udtrokia@163.com>"]
99
edition = "2018"
1010
description = "Leet your code in command-line."

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ cargo install leetcode-cli
2323
**Please make sure you have logined in `leetcode.com` with `chrome`**, more info plz checkout [this](#cookies)
2424

2525
```sh
26-
leetcode 0.2.10
26+
leetcode 0.2.11
2727
clearloop <udtrokia@163.com>
28-
Here's to the crazy ones 👻
28+
May the Code be with You 👻
2929

3030
USAGE:
3131
leetcode [FLAGS] [SUBCOMMAND]

‎src/cache/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ impl Cache {
140140
rdesc = serde_json::from_str(&target.desc)?;
141141
} else {
142142
let json: Value = self.0.clone().get_question_detail(&target.slug)?.json()?;
143+
debug!("{:#?}", &json);
143144
parser::desc(&mut rdesc, json)?;
144145

145146
// update the question

‎src/cache/models.rs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ mod question {
161161
/// Algorithm metadata
162162
#[derive(Debug, Default, Serialize, Deserialize)]
163163
pub struct MetaData {
164-
pub name: String,
164+
pub name: Option<String>,
165165
pub params: Vec<Param>,
166166
pub r#return: Return,
167167
}
@@ -367,6 +367,13 @@ impl std::fmt::Display for VerifyResult {
367367
&self.status.status_msg.yellow().bold(),
368368
&self.code_output,
369369
),
370+
// Output Timeout Exceeded
371+
14 => write!(
372+
f,
373+
"\n{}:\n\n{:?}\n",
374+
&self.status.status_msg.yellow().bold(),
375+
&self.code_output,
376+
),
370377
// Runtime error
371378
15 => write!(f, "\n{}\n", &self.status.status_msg.red().bold()),
372379
// Compile Error

‎src/cli.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use clap::{App, AppSettings};
1313
pub fn main() -> Result<(), Error> {
1414
let m = App::new("leetcode")
1515
.author("clearloop <udtrokia@163.com>")
16-
.version("0.2.10")
17-
.about("Here's to the crazy ones 👻")
16+
.version("0.2.11")
17+
.about("May the Code be with You 👻")
1818
.subcommands(vec![
1919
DataCommand::usage().display_order(1),
2020
EditCommand::usage().display_order(2),

‎src/helper.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ mod html {
117117
tks = tks.replace(r#"&amp;"#, "&");
118118
tks = tks.replace(r#"&quot;"#, "\"");
119119
tks = tks.replace(r#"&nbsp;"#, " ");
120+
tks = tks.replace(r#"&#39;"#, "'");
121+
tks = tks.replace(r#"&ge;"#, ">=");
122+
tks = tks.replace(r#"&le;"#, "<=");
120123

121124
let res: Vec<Token>;
122125
// styled

‎src/lib.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
//! **Please make sure you have logined in `leetcode.com` with `chrome`**, more info plz checkout [this](#cookies)
2424
//!
2525
//! ```sh
26-
//! leetcode 0.2.10
26+
//! leetcode 0.2.11
2727
//! clearloop <udtrokia@163.com>
28-
//! Here's to the crazy ones 👻
28+
//! May the Code be with You 👻
2929
//!
3030
//! USAGE:
3131
//! leetcode [FLAGS] [SUBCOMMAND]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /