We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Laptop Battery Life
Laptop Battery Life
Sort by
recency
|
208 Discussions
|
Please Login in order to post a comment
Simple C++ Solution: All Test Case pass int main() { double time; cin >> time; if (time >= 4) cout<<"8.00"; else cout<< time*2;
return 0; }
very easy
8 if timeCharged > 4 else timeCharged*2
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))
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?