Python Task on Data Structures and Algorithms

class ListNode:
def __init__(self, data, priority):
self.data = data
self.priority = priority

Python Task on Objects and Algorithms

```files=["in_abc10.txt","in_abc100.txt"]
outFiles=["out_abc10a.txt","out_abc100a.txt"]

```{
"cells": [
{
"cell_type": "code",
"execution_count": 195,
"outputs": [

Python Task on Island of Rats and Cats

from numpy import random
def get_rain():
if random.rand() < rain_chance:
return 0
return max(0, random.normal(rain_mean, rain_std, size=(1, 1))[0][0]) Continue reading

Python Task on War and Peace by Leo Tolstoy

#!/bin/python3

“””
Explain how your pseudo random numbers are produced.
– The pseudo random numbers without seed value. Will be take the nanosecond on posis system. Then move to text file base on position. So it will work.
– The pseudo rando number with seed value. Will be move to file with this position. That’s mean the random will be the same

Python Task on Run-Length Encoding & Decoding

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>

/* Stores parameters that specify how to the program should behave. * Continue reading

Python Program on Guessing Game

```import numpy as np
print('')
print("Enter two numbers, low then high.")
l = int(input("low = "))
h = int(input("high = "))