ancestors
:std::set
ofuint256
descendants
:std::set
ofuint256
nSize
:CAmount
txFee
:uint64_t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#User function Template for python3 | |
import math | |
class Solution: | |
def solveQueries(self, nums, Queries, k): | |
originalLocation = Solution.saveQueryLocation(Queries) | |
Queries = Solution.sortQ(Queries,len(nums),nums) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findMovingMovingMedian(arr){ | |
//check edge cases | |
let median = '' | |
if(arr.length==0){ | |
return median | |
} | |
if(arr.length ==1){ | |
return arr[0] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateId(startIn?: number){ | |
startIn? null: startIn = 1 | |
if(startIn>1000000){ | |
return false; | |
} | |
let randomId:number = 100000+Math.floor(Math.random() * 9000000); | |
if(startIn>0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node { | |
constructor(element) { | |
this.element = element; | |
this.next = null; | |
} | |
} | |
class LinkedList { | |
constructor() { | |
this.head = null, | |
this.size = 0 |