This is a list of most frequently asked coding questions for Amazon SDE roles.
Let's get started.
def mergeKLists(self, lists: List[ListNode]) -> ListNode:This is a list of most frequently asked coding questions for Amazon SDE roles.
Let's get started.
def mergeKLists(self, lists: List[ListNode]) -> ListNode:| Supervised | Unsupervised | RL | DeepLearning | |
|---|---|---|---|---|
| XGBoost | Clustering | Model Free RL-TRPO-PPO-A3C | CNN | |
| Linear Regression | K-Means | PG | NN | |
| Logistic Regression | Hierarchical clustering | Q-learning -DQN | RNN | |
| SVM | Fuzzy C-Means | QR-DQN | LSTM | |
| Desicion Trees | PCA | C51 | R-CNN | |
| Random Forests | SVD | HER | GANS | |
| LightGBM | ICA | Model Based RL | Faster-RCNN | |
| KNN | Cyclic-GANS |
| def func_name_printer(func): | |
| def wrapper(*args): | |
| print("Function that started running is " + func.__name__) | |
| func(*args) | |
| return wrapper | |
| def add(*args): | |
| tot_sum = 0 | |
| for arg in args: | |
| tot_sum += arg |
| def func_name_printer(func): | |
| def wrapper(*args): | |
| print("Function that started running is " + func.__name__) | |
| func(*args) | |
| return wrapper | |
| @func_name_printer | |
| def add(*args): | |
| tot_sum = 0 | |
| for arg in args: |
| from functools import wraps | |
| def func_name_printer(func): | |
| @wraps(func) | |
| def wrapper(*args): | |
| """Prints the Name of the function. | |
| """ | |
| print("Function that started running is " + func.__name__) | |
| result = func(*args) | |
| return result # Extra Return |
| from functools import wraps | |
| import time | |
| def timeit(func): | |
| @wraps(func) | |
| def wrapper(*args, **kwargs): | |
| print("Tracking function: " + func.__name__ + "()") | |
| start = time.time() | |
| func(*args, **kwargs) | |
| end = time.time() |
| class Datatypes(): | |
| def __init__(self, *args): | |
| self.args = list(args[0]) | |
| def __call__(self): | |
| print(self.args) | |
| @classmethod | |
| def from_list(cls, arglist): | |
| args = tuple(arglist) |
| class Storage: | |
| """ | |
| MaxLimit of storage is 100 | |
| """ | |
| def __init__(self, maxlimit=0): | |
| self.limit = 100 | |
| self.maxlimit = maxlimit | |
| @property | |
| def maxlimit(self): |
| class Multiply: | |
| def __init__(self, numbers): | |
| self.numbers = numbers | |
| def __call__(self): | |
| print(f"multiply {self.numbers}") | |
| self.checker(self.numbers) | |
| self.result = 1 | |
| for num in self.numbers: | |
| self.result *= num |