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
import java.util.*; | |
import java.io.*; | |
// Simple Template @Vishal | |
class Template { | |
public static void main(String[] args) throws Exception{ | |
Scanner sc = new Scanner(System.in); | |
try { |
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
import java.io.OutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.PrintWriter; | |
import java.util.StringTokenizer; | |
import java.io.IOException; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.io.InputStream; |
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
import java.io.*; | |
import java.util.*; | |
public class FastIOTemplate{ | |
public static void main(String[] args) { | |
MyScanner sc = new MyScanner(); | |
out = new PrintWriter(new BufferedOutputStream(System.out)); | |
// Start writing your solution here. ------------------------------------- | |
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
sudo apt install torbrowser-launcher | |
xhost si:localuser:kali | |
sudo -u kali -H torbrowser-launcher | |
sudo -u username -H torbrowser-launcher |
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
import java.util.*; | |
import java.io.*; | |
class Template { | |
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
int T = Integer.parseInt(br.readLine().trim()); | |
while (T-- > 0) { | |
int N = Integer.parseInt(br.readLine().trim()); | |
int a[] = new int[N]; |
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
[Desktop Entry] | |
Name=Eclipse | |
Type=Application | |
Exec=/opt/eclipse/eclipse | |
Terminal=false | |
Icon=/opt/eclipse/icon.xpm | |
Comment=Integrated Development Environment | |
NoDisplay=false | |
Categories=Development;IDE; | |
Name[en]=Eclipse |
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
*.class | |
# Mobile Tools for Java (J2ME) | |
.mtj.tmp/ | |
# Package Files # | |
*.jar | |
*.war | |
*.ear |
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
import java.util.Scanner; | |
public class AbstractionExample { | |
public static void main(final String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
Shape shape = null; | |
System.out.println("AREA OF SHAPE"); | |
System.out.println("1. Rectange\n2. Square"); | |
System.out.print("Choice ? "); |
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 Color { | |
public static final Color RED = new Color("RED"); | |
public static final Color WHITE = new Color("WHITE"); | |
public static final Color BLUE = new Color("BLUE"); | |
public static final Color GREEN = new Color("GREEN"); | |
private String color; | |
static { |
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
// Save File As 'UniquePairs.js' | |
// To Run : node UniquePairs Or node UniquePairs.js | |
// Count Pairs | |
function sortAndCount(n, arr) { | |
// Sort Array | |
let sorted = arr.sort( (a,b) => a - b); | |
let pairs = 0; |
OlderNewer