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 requests | |
from pathlib import Path | |
customer_id = input("Input customerId.") | |
bearer_token = input("Bearer token") | |
headers = { | |
"authorization": bearer_token | |
} |
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 requests | |
import datetime | |
import smtplib | |
import time | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
# Disable 2fa and allow less secure app access on your sender's gmail account | |
# if too much work then subscribe here to get updates: https://forms.gle/cEFnEVM7nwvaXsLa6 | |
sender = '[email protected]' |
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
/* Hidden stub code will pass a root argument to the function below. Complete the function to solve the challenge. Hint: you may want to write one or more helper functions. | |
The Node struct is defined as follows: | |
struct Node { | |
int data; | |
Node* left; | |
Node* right; | |
} | |
*/ | |
#include <climits> |
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 Case 1 | |
Input (stdin) | |
4 | |
9 8 7 6 | |
Expected Output | |
6 7 8 9 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct node { | |
int data; | |
struct node *next; | |
}; | |
struct node* add(struct node *h,int v) | |
{ | |
struct node *t; | |
t = (struct node *)malloc(sizeof(struct node)); |
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 Case 1 | |
Input (stdin) | |
6 | |
3 5 9 1 12 15 | |
Expected Output | |
Top=15 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct node{ | |
int data; | |
struct node *next; | |
}; | |
struct node *head; | |
void disp(){ | |
printf("Marks\n"); | |
struct node *p = head; |