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
public class JODConverter { | |
private static volatile OfficeManager officeManager; | |
private static volatile OfficeDocumentConverter converter; | |
public static void startOfficeManager(){ | |
try { | |
officeManager = new DefaultOfficeManagerConfiguration() | |
.setOfficeHome(new File('libre office home path')) |
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
package main | |
import "fmt" | |
import "math/rand" | |
func partition ( a * []int,start ,end int) int { | |
A := *a | |
i := start + 1; | |
piv := A[start] ; //make the first element as pivot element. | |
for j :=start + 1; j <= end ; j++ { | |
/*rearrange the array by putting elements which are less than pivot |
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
package main | |
import "fmt" | |
var ( | |
n,m int | |
arr [][]int | |
) | |
func calculateArea(arr *[][]int, x,y int, clear bool) int { | |
area := 1; |