Skip to content

Instantly share code, notes, and snippets.

View prameshbhattarai's full-sized avatar

pramesh bhattarai prameshbhattarai

View GitHub Profile
@prameshbhattarai
prameshbhattarai / sum_of_square.go
Created August 22, 2018 14:59
calculate a sum of squares of some integers, excepting negatives
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
@prameshbhattarai
prameshbhattarai / Threadz.java
Created August 10, 2018 17:04
Thread execution..
public class Threadz {
public static void main(String... args) {
// creating 1000 threads
Thread[] threadsPool = new Thread[1000];
for(int i = 0; i < 1000; i++) {
// assigning tasks to each thread