Skip to content

Instantly share code, notes, and snippets.

View ismaelsadeeq's full-sized avatar
🍭
learning and building

Abubakar Sadiq Ismail ismaelsadeeq

🍭
learning and building
View GitHub Profile

Another attempt at #23074

1. Update TxStatsInfo to have the following additional fields:

  • ancestors: std::set of uint256
  • descendants: std::set of uint256
  • nSize: CAmount
  • txFee: uint64_t
@ismaelsadeeq
ismaelsadeeq / interestingQuery.py
Created December 27, 2022 10:44
Interesting Queries
#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)
@ismaelsadeeq
ismaelsadeeq / moving_median.js
Created November 14, 2022 10:42
Moving median
function findMovingMovingMedian(arr){
//check edge cases
let median = ''
if(arr.length==0){
return median
}
if(arr.length ==1){
return arr[0]
}
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){
@ismaelsadeeq
ismaelsadeeq / list.js
Created January 31, 2022 19:49
Linked List implementation with Javascript ES9
class Node {
constructor(element) {
this.element = element;
this.next = null;
}
}
class LinkedList {
constructor() {
this.head = null,
this.size = 0