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

0.14.0 problem description #287

Closed
Closed
Assignees
Milestone
@donifer

Description

🐛 Bug Report

Before 0.14.0 when I started a new problem the instructions would be in the new problem file commented out. But now I don't get the description in the problem's comments. I just get something like this without the description

/*
 * @lc app=leetcode id=35 lang=javascript
 *
 * [35] Search Insert Position
 */
/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number}
 */
var searchInsert = function(nums, target) {
 
};

To Reproduce

Start any problem from the sidenav.

Expected behavior

The problems should include the description.

Extension Output

/*
 * @lc app=leetcode id=35 lang=javascript
 *
 * [35] Search Insert Position
 */
/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number}
 */
var searchInsert = function(nums, target) {
 
};
[35] Search Insert Position 
https://leetcode.com/problems/search-insert-position/description/
Tags: algorithms array binary-search 
Langs: c cpp csharp golang java javascript kotlin php python python3 ruby rust scala swift 
* algorithms
* Easy (40.67%)
* Likes: 1225
* Dislikes: 170
* Total Accepted: 386.1K
* Total Submissions: 948.8K
* Testcase Example: '[1,3,5,6]\n5'
<p>Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.</p>
<p>You may assume no duplicates in the array.</p>
<p><strong>Example 1:</strong></p>
<pre>
<strong>Input:</strong> [1,3,5,6], 5
<strong>Output:</strong> 2
</pre>
<p><strong>Example 2:</strong></p>
<pre>
<strong>Input:</strong> [1,3,5,6], 2
<strong>Output:</strong> 1
</pre>
<p><strong>Example 3:</strong></p>
<pre>
<strong>Input:</strong> [1,3,5,6], 7
<strong>Output:</strong> 4
</pre>
<p><strong>Example 4:</strong></p>
<pre>
<strong>Input:</strong> [1,3,5,6], 0
<strong>Output:</strong> 0
</pre>

Your Environment

  • os: macOS
  • extension settings:
{
 "leetcode.defaultLanguage": "javascript",
 "leetcode.showLocked": true,
 "leetcode.enableStatusBar": false,
 "leetcode.enableShortcuts": false
}
  • nodejs version: 10.15.1
  • vscode version: 1.33.1
  • extension version: 0.14.0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

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