!==instead of===, or vice versa
resultinstead ofresults
| package main | |
| import ( | |
| "encoding/json" | |
| "math/rand" | |
| "net/http" | |
| "strconv" | |
| ) | |
| func main() { |
axios.get(url)
.then(res => res.data)
.then(data => JSON.stringify(data)
.catch(err => console.log(err))
fetch(url)
.then(res => res.json())
.then(({ results }) => results.map(result => console.log(result))
.catch(err => console.log(err));| let sum = (a,b,c) => a+b+c | |
| const tcs = [ | |
| [1, | |
| 2, | |
| 3, | |
| 6], | |
| ["1", | |
| "2", |
| sum = lambda a, b, c : a + b + c | |
| tcs = [ | |
| [1, | |
| 2, | |
| 3, | |
| 6], | |
| ["1", | |
| "2", |
| import math | |
| MODULO = 10**9 + 7 | |
| N =200 | |
| P = [1 for i in range(N)] | |
| # k**i | |
| def genPowerMatrix(k,N): | |
| for i in range(1,N): | |
| P[i] = 9 * P[i-1] % MODULO |
| // int32, float32 len(str(2**32)) = 10 | |
| // int64, float64 len(str(2**64)) = 20 | |
| const MODULO = Math.pow(10, 9) + 7; | |
| const N =200; | |
| var P = [].fill.call({ length: N }, 1);// Powers - k^n, k to the power of n | |
| var F = [].fill.call({ length: N }, 1);// Factorials - k! | |
| var C = new Array(N); // Combinations - C(n,k)=n! /(n-k)!*k! | |
| var Pm = [].fill.call({ length: N }, 1);// Permuation |
| def isPaired(a,b): | |
| if (a == "{" and b =="}") or\ | |
| (a == "(" and b ==")") or \ | |
| (a == "[" and b =="]"): | |
| return True | |
| return False | |
| def isBalanced(s): | |
| # Write your code here |
| #!/bin/python3 | |
| import math | |
| import os | |
| import random | |
| import re | |
| import sys | |
| # |
| #!/bin/python3 | |
| import math | |
| import os | |
| import random | |
| import re | |
| import sys | |