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
'use strict'; | |
function getExecutorPerEC2(cpuPerEc2, executorCore) { | |
return Math.floor((cpuPerEc2 - 1) / executorCore); | |
} | |
function getMemoryCfg(memoryPerEc2, executorPerEc2) { | |
var totalMemory = Math.floor(memoryPerEc2 / executorPerEc2); | |
var executorMemory = Math.floor(totalMemory * 0.86); | |
return { |
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
/* | |
* | |
* This code is written for Selection sort tutorial | |
* The comment won't make sense unless you read the slide that goes with it | |
* | |
* Go to Vumari.com to find the slides | |
* | |
*/ | |
public class SelectionSort { |
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
/* | |
* | |
* This code is written for Stacks tutorial | |
* The comment won't make sense unless you read the slide that goes with it | |
* | |
* Go to Vumari.com to find the slide | |
* | |
*/ | |
public class LinkedListStacks { |
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
/* | |
* | |
* This code is written for Queue tutorial | |
* The comment won't make sense unless you read the slide that goes with it | |
* | |
* Go to Vumari.com to find slides | |
* | |
*/ | |
public class LinkedListQueue { | |
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
/* | |
* | |
* This code is written for Stacks tutorial | |
* The comment won't make sense unless you read the slide that goes with it | |
* | |
* Go to Vumari.com to find the slide | |
* | |
*/ | |
import java.util.Arrays; |