Skip to content

Instantly share code, notes, and snippets.

View voidnerd's full-sized avatar
:octocat:
Debugging

Ndifreke Friday voidnerd

:octocat:
Debugging
View GitHub Profile
class Node {
constructor(data, left = null, right = null) {
this.left = left;
this.right = right;
this.data = data;
}
}
class BST {
constructor() {
class Node {
constructor(data) {
this.left;
this.right;
this.data = data;
}
insert(value) {
if(value < this.data) {
if(this.left == null) {
class Node {
constructor(data) {
this.data = data;
this.next = null;
}
}
class LinkedList {
constructor () {
this.head = null;
this.size = 0;
const doWhileBubbleSort = arr => {
let swapped;
do {
swapped = false;
for (let i = 0; i < arr.length; i++) {
let next = i + 1;
if (arr[i] > arr[next]) {
let temp = arr[i];
arr[i] = arr[next];
arr[next] = temp;
{
"name": "expo",
"displayName": "expo",
"expo": {
"name": "xxxxx",
"icon": "./src/assets/android-icon-144x144.png",
"slug": "xxx",
"privacy": "unlisted",
"sdkVersion": "36.0.0",
"version": "1.0.0",
import React from "react";
import MapView from "react-native-maps";
import {
StyleSheet,
Image,
TouchableOpacity,
View,
Dimensions
} from "react-native";
import {
import React from "react";
import MapView from "react-native-maps";
import {
StyleSheet,
Image,
TouchableOpacity,
View,
Dimensions
} from "react-native";
import {
import React from "react";
import MapView from "react-native-maps";
import {
StyleSheet,
Image,
TouchableOpacity,
View,
Dimensions
} from "react-native";
import {
import React from "react";
import MapView from "react-native-maps";
import {
StyleSheet,
Image,
TouchableOpacity,
View,
Dimensions
} from "react-native";
import {
@voidnerd
voidnerd / hook.json
Created February 4, 2020 11:03 — forked from Afaara/hook.json
{
"event": "charge.success",
"data": {
"id": 84,
"domain": "test",
"status": "success",
"reference": "9cfbae6e-bbf3-5b41-8aef-d72c1a17650g",
"amount": 50000,
"message": null,
"gateway_response": "Approved",