Skip to content

Commit 75447bb

Browse files
committed
fix: two-sum hardcoded
1 parent d177250 commit 75447bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leetcode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;; Keywords: extensions, tools
77
;; URL: https://github.com/kaiwk/leetcode.el
88
;; Package-Requires: ((emacs "26") (dash "2.16.0") (graphql "0.1.1") (spinner "1.7.3") (aio "1.0") (log4e "0.3.3"))
9-
;; Version: 0.1.13
9+
;; Version: 0.1.14
1010

1111
;; This program is free software; you can redistribute it and/or modify
1212
;; it under the terms of the GNU General Public License as published by
@@ -951,7 +951,7 @@ python3, ruby, rust, scala, swift, mysql, mssql, oraclesql.")
951951

952952
(defun leetcode--get-problem-id (slug-title)
953953
"Get problem id by SLUG-TITLE."
954-
(let ((problem (leetcode--get-problem "two-sum")))
954+
(let ((problem (leetcode--get-problem slug-title)))
955955
(plist-get problem :id)))
956956

957957
(defun leetcode--start-coding (title snippets testcase)

0 commit comments

Comments
 (0)