Skip to content

Instantly share code, notes, and snippets.

View z1nc0r3's full-sized avatar
🏠
Work From Home

Lasith Manujitha z1nc0r3

🏠
Work From Home
View GitHub Profile
@z1nc0r3
z1nc0r3 / CircularLinkedList.java
Created August 27, 2022 12:16
Circular Linked List
class Node {
int value;
Node next;
Node(int value) {
this.value = value;
next = null;
}
}
@z1nc0r3
z1nc0r3 / LinkedQueue.java
Created August 27, 2022 12:15
Queue using Linked List
import java.util.Scanner;
class Node {
Node next;
int value;
Node (int value) {
this.value = value;
}
}
@z1nc0r3
z1nc0r3 / Queue.java
Created August 27, 2022 12:14
Queue using string array
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;
@z1nc0r3
z1nc0r3 / LinkedStack.java
Created August 27, 2022 12:13
Stack using Linked List
class Node {
String data;
Node next;
Node(String data) {
this.data = data;
next = null;
}
}
@z1nc0r3
z1nc0r3 / Stack.java
Created August 27, 2022 12:12
Stack using integer Array
public class Stack {
private int[] stack;
private int arrayLength;
private int current = -1;
public Stack(int arrayLength) {
this.arrayLength = arrayLength;
stack = new int[arrayLength];
}
class Node {
int value;
Node next;
Node(int value) {
this.value = value;
next = null;
}
}
@z1nc0r3
z1nc0r3 / BulkLinkClicker.py
Created May 25, 2021 11:12
Check bulk of web sites for their availability.
import requests
file = open('a.txt', 'r')
lines = file.readline()
count = 1
while lines:
url = "https://{}".format(lines.strip())
try:
req = requests.get(url)