This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
class AsyncAwaitImpl | |
{ | |
static void Main() | |
{ | |
// Create task and start it. | |
// ... Wait for it to complete. |
This file contains hidden or 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 FindMaxInBinaryTree { | |
// find max element in binary tree recursively | |
public int findMax(BinaryTreeNode root) { | |
int root_val, left, regith, max = 0; | |
if(root != null) { | |
root_val = root.getData(); | |
left = findMax(root.getLeft()); | |
right = findMax(root.getRight()); | |
// find the largest of the three values. |
This file contains hidden or 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 argparse | |
import sys | |
import grp | |
import pwd | |
import subprocess | |
import os | |
import json | |
class PreRegistration: |
This file contains hidden or 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
# Create two resource groups. | |
# Create 10 storage accounts (5 in each resource group). | |
# For each storage account, create 5 containers. | |
# Generate a random 1GB file. | |
# Upload the file to each container in all storage accounts. | |
# Pre-reqs perform az login | |
# az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
# create empty file named "random1GBfile.bin" in current folder | |
# review the variables and update them as needed |
This file contains hidden or 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
# Create two resource groups. | |
# Create 10 storage accounts (5 in each resource group). Soft delete for containers enabled with 7 days. | |
# For each storage account, create 5 containers. | |
# Generate a random 1GB file. | |
# Upload the file to each container in all storage accounts. | |
# Delete all the containers. | |
# Delete random 1GB file. | |
# Pre-reqs perform az login | |
# az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" |