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
/** | |
* | |
* @author Kareem Khattab | |
*/ | |
/** | |
*Given a string, return this output | |
*“3[a]4[b]” → aaabbbb | |
*“5[c3[b]]” → cbbbcbbbcbbbcbbbcbbb | |
*“2[z]3[z2[a]]” → zzzaazaazaa |
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
/** | |
* Created by Kareem on 12/18/16. | |
*/ | |
public class swap1 { | |
public static void main (String[] args) { | |
int arr[] = {1, 9, 8, 4, 0, 0, 2, 7, 0, 6, 0, 9}; | |
swapZeros(arr); |
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
exports.transferHandler = function transferHandler(event, context) { | |
context.callbackWaitsForEmptyEventLoop = false; | |
const time = new Date(); | |
const current_time_unix = moment().unix(); | |
connectToDatabase() | |
.then(() => { | |
BookingModel | |
.find({}) | |
.then((bookings) => { |