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 os | |
import sys | |
import threading | |
import subprocess | |
import time | |
def create_child(id): | |
print("create_child >>> [{}] {} ".format(threading.get_ident(), id)) | |
time.sleep(2) |
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 sys | |
import os | |
import copy | |
import psutil | |
import socket | |
import pprint | |
import getpass | |
import argparse | |
import json | |
import requests |
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
# Find the index of an item in a Bitonic array | |
# Bitonic array is an array where the sequence first increases then decreases | |
arr1 = [99,100,102,103,104,55,50,40,20,10,6] | |
arr2 = [99,100,102,103,104,105] | |
arr3 = [55,50,40,20,10,6] | |
arr4 = [99,100,102,103,104,105,50] | |
arr5 = [110,55,50,40,20,10,6] | |
def find_max_bitonic(arr,lb, ub): |
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
# Find the index of the max value in a Bitonic array | |
# Bitonic array is an array where the sequence first increases then decreases | |
arr1 = [99,100,102,103,104,55,50,40,20,10,6] | |
arr2 = [99,100,102,103,104,105] | |
arr3 = [55,50,40,20,10,6] | |
arr4 = [99,100,102,103,104,105,50] | |
arr5 = [110,55,50,40,20,10,6] | |
def find_max_bitonic(arr,lb, ub): |
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
Test submission from linux |
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
Test submission from linux |
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
Test1 from web. |