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
/** | |
* @author: Aashish | |
* Date: 13-07-2019 | |
*/ | |
import java.util.*; | |
class Solution { | |
static class Graph { |
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 React, { useReducer } from 'react'; | |
const reducer = (state, action) => { | |
switch(action.type) { | |
case 'add': { | |
return [ | |
...state, | |
{ | |
id: Date.now(), | |
text: '', |
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
from threading import Thread | |
import time | |
def job(name): | |
# Create a process heavy job | |
time.sleep(2) | |
print("The name is: %s" % name) | |
def main(): | |
print("Program starts!") |
NewerOlder