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 compress | |
| import ( | |
| "archive/zip" | |
| "bytes" | |
| "fmt" | |
| ) | |
| type SingleCompressError struct { | |
| Index int |
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
| sudo apt update | |
| sudo snap install discord | |
| sudo snap install discord --classic | |
| sudo snap install intellij-idea-ultimate --classic | |
| sudo snap install goland --classic | |
| sudo snap install datagrip --classic | |
| sudo snap install google-cloud-sdk --classic | |
| sudo snap install kontena-lens --classic | |
| sudo snap install gitkraken --classic | |
| sudo snap install spotify |
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 org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.web.servlet.config.annotation.CorsRegistry; | |
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | |
| @Configuration | |
| public class CorsConfigurers { | |
| @Bean |
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 IntStack { | |
| private final int[] stack; | |
| private int top; | |
| public IntStack() { | |
| this.top = 0; | |
| this.stack = new int[5]; | |
| } |
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 Merger { | |
| static int[] merge(int[] array1, int[] array2) { | |
| int[] mergedArray = new int[array1.length + array2.length]; | |
| int array1Index = 0; | |
| int array2Index = 0; | |
| int mergedArrayIndex = 0; | |
| while (array1Index < array1.length && array2Index < array2.length) { |
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 MatrixMultiply { | |
| static void printMatrix(double[][] a) { | |
| for (int i = 0; i < a.length; i++) { | |
| for (int j = 0; j < a[0].length; j++) { | |
| System.out.print(a[i][j] + " "); | |
| } | |
| System.out.println(); | |
| } |