This file contains hidden or 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(data, left = null, right = null) { | |
| this.left = left; | |
| this.right = right; | |
| this.data = data; | |
| } | |
| } | |
| class BST { | |
| constructor() { |
This file contains hidden or 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(data) { | |
| this.left; | |
| this.right; | |
| this.data = data; | |
| } | |
| insert(value) { | |
| if(value < this.data) { | |
| if(this.left == null) { |
This file contains hidden or 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(data) { | |
| this.data = data; | |
| this.next = null; | |
| } | |
| } | |
| class LinkedList { | |
| constructor () { | |
| this.head = null; | |
| this.size = 0; |
This file contains hidden or 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
| 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; |
This file contains hidden or 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
| { | |
| "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", |
This file contains hidden or 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
| import React from "react"; | |
| import MapView from "react-native-maps"; | |
| import { | |
| StyleSheet, | |
| Image, | |
| TouchableOpacity, | |
| View, | |
| Dimensions | |
| } from "react-native"; | |
| import { |
This file contains hidden or 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
| import React from "react"; | |
| import MapView from "react-native-maps"; | |
| import { | |
| StyleSheet, | |
| Image, | |
| TouchableOpacity, | |
| View, | |
| Dimensions | |
| } from "react-native"; | |
| import { |
This file contains hidden or 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
| import React from "react"; | |
| import MapView from "react-native-maps"; | |
| import { | |
| StyleSheet, | |
| Image, | |
| TouchableOpacity, | |
| View, | |
| Dimensions | |
| } from "react-native"; | |
| import { |
This file contains hidden or 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
| import React from "react"; | |
| import MapView from "react-native-maps"; | |
| import { | |
| StyleSheet, | |
| Image, | |
| TouchableOpacity, | |
| View, | |
| Dimensions | |
| } from "react-native"; | |
| import { |
This file contains hidden or 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
| { | |
| "event": "charge.success", | |
| "data": { | |
| "id": 84, | |
| "domain": "test", | |
| "status": "success", | |
| "reference": "9cfbae6e-bbf3-5b41-8aef-d72c1a17650g", | |
| "amount": 50000, | |
| "message": null, | |
| "gateway_response": "Approved", |