<jupyter_start><jupyter_text>Problem: Maria plays college basketball and wants to go pro. Each season she maintains a record of her play. She tabulates the number of times she breaks her season record for most points and least points in a game. Points scored in the first game establish her record for the season, and she begins counting from there.  Function DescriptionComplete the breakingRecords function in the editor below.breakingRecords has the following parameter(s):int scores[n]: points scored per game Returnsint[2]: An array with the numbers of times she broke her records. Index  is for breaking most points records, and index  is for breaking least points records. Input FormatThe first line contains an integer , the number of games.The second line contains  space-separated integers describing the respective values of . 9 10 5 20 20 4 5 2 25 1<jupyter_code>n=9
scores=[10,5,20,20,4,5,2,25,1]
result=[0,0]
max_score=scores[0]
min_score=scores[0]
for i in range(len(scores)):
    if min_score>scores[i]:
        result[1]=result[1]+1
        min_score=scores[i]
        #print(min_score)
    elif max_score<scores[i]:
        result[0]=result[0]+1
        max_score=scores[i]
        #print(max_score)
print(result)


import math
import os
import random
import re
import sys

#
# Complete the 'breakingRecords' function below.
#
# The function is expected to return an INTEGER_ARRAY.
# The function accepts INTEGER_ARRAY scores as parameter.
#

def breakingRecords(scores):
    # Write your code here
    result=[0,0]
    max_score=scores[0]
    min_score=scores[0]
    for i in range(len(scores)):
        if min_score>scores[i]:
            result[1]=result[1]+1
            min_score=scores[i]
            #print(min_score)
        elif max_score<scores[i]:
            result[0]=result[0]+1
            max_score=scores[i]
            #print(max_score)
    return result<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08125, 'fraction_numerical': 0.025520833333333333, 'mean_word_length': 3.74320987654321, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '140082', 'license': 'MIT', 'n_tokens_mistral': 594, 'n_tokens_neox': 550, 'n_words': 207, 'path': 'notebooks/HackerRank_python/Array_2D/break_the_records.ipynb', 'repo_name': 'aj2010adil/HackerRank', 'size': '1920'}