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 Node { | |
int value; | |
Node next; | |
Node(int value) { | |
this.value = value; | |
next = null; | |
} | |
} |
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; | |
class Node { | |
Node next; | |
int value; | |
Node (int value) { | |
this.value = value; | |
} | |
} |
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 Queue { | |
public int size; | |
public int front = 0; | |
public int rear = -1; | |
public String[] queue; | |
Queue(int size) { | |
this.size = size; |
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 Node { | |
String data; | |
Node next; | |
Node(String data) { | |
this.data = data; | |
next = null; | |
} | |
} |
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 Stack { | |
private int[] stack; | |
private int arrayLength; | |
private int current = -1; | |
public Stack(int arrayLength) { | |
this.arrayLength = arrayLength; | |
stack = new int[arrayLength]; | |
} | |
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 Node { | |
int value; | |
Node next; | |
Node(int value) { | |
this.value = value; | |
next = null; | |
} | |
} |
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 requests | |
file = open('a.txt', 'r') | |
lines = file.readline() | |
count = 1 | |
while lines: | |
url = "https://{}".format(lines.strip()) | |
try: | |
req = requests.get(url) |
NewerOlder