Sort by

recency

|

206 Discussions

|

  • + 0 comments

    very easy 8 if timeCharged > 4 else timeCharged*2

  • + 1 comment

    Polynomial Regression wasn't really needed..

    If you copy the data provided and plot it -- the solution is pretty clear.

    `

    !/bin/python3

    import math import os import random import re import sys from sklearn.linear_model import LinearRegression

    if name == 'main': timeCharged = float(input().strip()) battery, duration = [], [] with open('trainingdata.txt', 'r') as inf: for line in inf.readlines(): x, y = line.replace('\n', '').split(',') battery.append(float(x)) duration.append(float(y))

    lr = LinearRegression()
    # Split the data
    X, Y = [], []
    for x, y in zip(battery, duration):
        if x < 4.0:
            X.append([x])
            Y.append(y)
    
    lr.fit(X, Y)
    
    # predict
    print(lr.predict([[timeCharged]])[0] if timeCharged < 4 else 8.0)```
    
  • + 0 comments

    Hey everyone! I’ve been diving into BGMI on my laptop, but I’m finding battery life to be a challenge during those intense gaming sessions. I’m curious: what strategies do you use to keep your battery running longer while playing? Any tips or experiences to share?

  • + 0 comments

    When it comes to laptop battery life, users often struggle to find devices that offer both power and longevity. A good battery life is essential for productivity, whether you're working on the go, attending meetings, or simply enjoying entertainment. Just as with other rechargeable devices, proper maintenance can significantly extend the lifespan of a laptop battery. It's important to avoid overcharging, use power-saving modes, and keep your system cool. In a similar way, maintaining devices like the Dyson V6 vacuum requires proper care. If you're noticing a decline in performance, consider a dyson v6 battery replacement to keep your vacuum running efficiently and extend its life. Taking such steps can save both time and money while maximizing the performance of your tech gadgets.

  • + 0 comments

    When playing Stardew Valley APK on a laptop, the game's relaxing pace makes it easy to lose track of time, so keeping an eye on your battery life is crucial. This delightful farming simulation is perfect for portable play, but long sessions can quickly drain your battery. To extend your playtime, consider lowering the screen brightness and closing unnecessary background applications. Stardew Valley’s charming gameplay is best enjoyed without interruptions, so ensuring your laptop is charged or near a power source can keep your farming adventures uninterrupted.