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
package problems; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class FileAppender { | |
public static void main(String[] args) { | |
InputStream in = System.in; | |
Scanner scanner = new Scanner(in); |
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
package problems; | |
import java.util.Scanner; | |
import java.util.regex.Pattern; | |
public class StringConvertor { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int totalInputs = Integer.parseInt(scanner.nextLine()); |
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
cat source.csv | awk 'BEGIN{ FS=" *;"; OFS=";" } {$1=$1; print $0}' >> targetfile |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#define MAX 100 | |
#define EXIT_CHOICE 10 | |
#define USERS_FILE "users.txt" | |
#define BOOKS_FILE "books.txt" |
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
public class Test { | |
public static void main(String[] args) { | |
long startTime = System.nanoTime(); | |
\\ Logic Here | |
long stopTime = System.nanoTime(); | |
long elapsedTime = stopTime - startTime; |
NewerOlder