Skip to content

Commit 5756351

Browse files
author
robot
committed
feat: 0.9.1
1 parent 5b50348 commit 5756351

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed
Binary file not shown.

‎public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "leetcode cheatsheet",
44
"description": "刷题小助手,made by 力扣加加",
5-
"version": "0.9.0",
5+
"version": "0.9.1",
66
"browser_action": {
77
"default_popup": "index.html",
88
"default_title": "力扣加加"

‎src/contentScript.js

+26-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,32 @@ function goToVisDebug() {
220220
C: "c_gcc9.3.0",
221221
};
222222
const prefixMap = {
223-
Python3: "",
224-
JavaScript: "",
223+
Python3: `
224+
# 如何你在调试链表题目,手动生成链表很麻烦,想快速生成链表可以注释如下方法,并使用如下方法,输入一个数组,返回一个链表
225+
# eg:head = ListNodes([4,2,1,3]).head
226+
# class ListNodes:
227+
# def __init__(self, vals)->ListNode:
228+
# cur = dummy = ListNode()
229+
# for val in vals:
230+
# nxt = ListNode(val)
231+
# cur.next = nxt
232+
# cur = nxt
233+
# self.head = dummy.next
234+
`,
235+
JavaScript: `
236+
// 如何你在调试链表题目,手动生成链表很麻烦,想快速生成链表可以注释如下方法,并使用如下方法,输入一个数组,返回一个链表
237+
// eg:head = ListNodes([4,2,1,3]).head
238+
// function ListNodes(vals) {
239+
// let cur = new ListNode()
240+
// let dummy = cur
241+
// for(const val of vals) {
242+
// const nxt = new ListNode(val)
243+
// cur.next = nxt
244+
// cur = nxt
245+
// }
246+
// return dummy.next
247+
// }
248+
`,
225249
java: "",
226250
"C++": `
227251
#include <algorithm>

0 commit comments

Comments
 (0)