Skip to content

Commit addb959

Browse files
committed
remove comments
1 parent 35963c9 commit addb959

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

articles/random-pick-with-weight.md

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ class Solution:
1616
curSum += self.w[i]
1717
if curSum > target:
1818
return i
19-
20-
21-
# Your Solution object will be instantiated and called as such:
22-
# obj = Solution(w)
23-
# param_1 = obj.pickIndex()
2419
```
2520

2621
```java
@@ -47,13 +42,6 @@ public class Solution {
4742
return -1;
4843
}
4944
}
50-
51-
52-
/**
53-
* Your Solution object will be instantiated and called as such:
54-
* Solution obj = new Solution(w);
55-
* int param_1 = obj.pickIndex();
56-
*/
5745
```
5846

5947
```cpp
@@ -81,13 +69,6 @@ public:
8169
return -1;
8270
}
8371
};
84-
85-
86-
/**
87-
* Your Solution object will be instantiated and called as such:
88-
* Solution* obj = new Solution(w);
89-
* int param_1 = obj->pickIndex();
90-
*/
9172
```
9273

9374
```javascript
@@ -115,13 +96,6 @@ class Solution {
11596
return -1;
11697
}
11798
}
118-
119-
120-
/**
121-
* Your Solution object will be instantiated and called as such:
122-
* var obj = new Solution(w)
123-
* var param_1 = obj.pickIndex()
124-
*/
12599
```
126100

127101
```csharp
@@ -148,13 +122,6 @@ public class Solution {
148122
return -1;
149123
}
150124
}
151-
152-
153-
/**
154-
* Your Solution object will be instantiated and called as such:
155-
* Solution obj = new Solution(w);
156-
* int param_1 = obj.PickIndex();
157-
*/
158125
```
159126

160127
::tabs-end
@@ -188,11 +155,6 @@ class Solution:
188155
else:
189156
r = mid
190157
return l - 1
191-
192-
193-
# Your Solution object will be instantiated and called as such:
194-
# obj = Solution(w)
195-
# param_1 = obj.pickIndex()
196158
```
197159

198160
```java
@@ -220,13 +182,6 @@ public class Solution {
220182
return l - 1;
221183
}
222184
}
223-
224-
225-
/**
226-
* Your Solution object will be instantiated and called as such:
227-
* Solution obj = new Solution(w);
228-
* int param_1 = obj.pickIndex();
229-
*/
230185
```
231186

232187
```cpp
@@ -255,13 +210,6 @@ public:
255210
return l - 1;
256211
}
257212
};
258-
259-
260-
/**
261-
* Your Solution object will be instantiated and called as such:
262-
* Solution* obj = new Solution(w);
263-
* int param_1 = obj->pickIndex();
264-
*/
265213
```
266214

267215
```javascript
@@ -294,13 +242,6 @@ class Solution {
294242
return l - 1;
295243
}
296244
}
297-
298-
299-
/**
300-
* Your Solution object will be instantiated and called as such:
301-
* var obj = new Solution(w)
302-
* var param_1 = obj.pickIndex()
303-
*/
304245
```
305246

306247
```csharp
@@ -328,13 +269,6 @@ public class Solution {
328269
return l - 1;
329270
}
330271
}
331-
332-
333-
/**
334-
* Your Solution object will be instantiated and called as such:
335-
* Solution obj = new Solution(w);
336-
* int param_1 = obj.PickIndex();
337-
*/
338272
```
339273

340274
::tabs-end

0 commit comments

Comments
 (0)