Skip to content

Commit f237725

Browse files
committed
Added frequency to graphql request and comments that it doesnt work
1 parent d665a5c commit f237725

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

swagger.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ components:
299299
is_favor:
300300
type: boolean
301301
frequency:
302+
# Frequency is reported incorrectly. It is always 0.
303+
# Provided here just for the reference, but you shouldn't count
304+
# on this value.
302305
type: number
306+
exmple: 0.0
303307
progress:
304308
type: number
305309
Problems:
@@ -355,6 +359,12 @@ components:
355359
title:
356360
type: string
357361
example: "Two Sum"
362+
frequency:
363+
# Frequency is reported incorrectly. It is always 0.
364+
# Provided here just for the reference, but you shouldn't count
365+
# on this value.
366+
type: number
367+
example: 0.0
358368
content:
359369
type: string
360370
example: '<p>Given an array of integers <code>nums</code>&nbsp;and an integer <code>target</code>, return <em>indices of the two numbers such that they add up to <code>target</code></em>.</p>\n\n<p>You may assume that each input would have <strong><em>exactly</em> one solution</strong>, and you may not use the <em>same</em> element twice.</p>\n\n<p>You can return the answer in any order.</p>\n\n<p>&nbsp;</p>\n<p><strong>Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums = [2,7,11,15], target = 9\n<strong>Output:</strong> [0,1]\n<strong>Output:</strong> Because nums[0] + nums[1] == 9, we return [0, 1].\n</pre>\n\n<p><strong>Example 2:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums = [3,2,4], target = 6\n<strong>Output:</strong> [1,2]\n</pre>\n\n<p><strong>Example 3:</strong></p>\n\n<pre>\n<strong>Input:</strong> nums = [3,3], target = 6\n<strong>Output:</strong> [0,1]\n</pre>\n\n<p>&nbsp;</p>\n<p><strong>Constraints:</strong></p>\n\n<ul>\n\t<li><code>2 &lt;= nums.length &lt;= 10<sup>4</sup></code></li>\n\t<li><code>-10<sup>9</sup> &lt;= nums[i] &lt;= 10<sup>9</sup></code></li>\n\t<li><code>-10<sup>9</sup> &lt;= target &lt;= 10<sup>9</sup></code></li>\n\t<li><strong>Only one valid answer exists.</strong></li>\n</ul>\n\n<p>&nbsp;</p>\n<strong>Follow-up:&nbsp;</strong>Can you come up with an algorithm that is less than&nbsp;<code>O(n<sup>2</sup>)&nbsp;</code>time complexity?'

0 commit comments

Comments
 (0)