Can someone sanity check me on this that the function is O(n^2)static void f(int n) {
for(int i = 1; i <= n; i++) {
for(int j = 1; j <= i; j++)
System.out.print("*");
System.out.print("\n");
}
}
>>62041857
I'm not going to give you the answer, but you should plug in a number for n. Then count the number of times the for loops will be called. If the result is n^2, then it's O(n^2).
>>62041857
Just code it and see what happens
>>62041857
Yes. The inside loop will first run once, then twice, then thrice, etc. So the * gets printed
1 + 2 + 3 + ... + n
times. This formula is for the "nth Triangular Number" and it has a general formula of
1 + 2 + 3 + ... + n == n*(n+1)/2
Expanding the right hand side out gives (n^2)/2 + n/2 + 1/2, which is indeed O(n^2)
Is there any way to get LTE on a laptop without it being builtin? Something like a PCI/USB device that you plug a SIM card into and it provides internet. Is there any reason this couldn't be a thing? If not why isn't it?
>>62041855
it does exist and you could find them on ebay & amazon.
Google is your best friend
you just need a laptop with an empty mPCIe slot and a LTE capable WWAN card, I'm not sure what you would do about the SIM card if the laptop does not have a built-in SIM slot
I remember being excited about multi desktops for Windows, but then ended up never actually using it. I feel it encourages you to keep unused processes open in the background even worse than minimizing applications does. Yes, I have the ram to support it, but I still like to keep my amount of open applications down to 10 max.
Does anyone legit use Multi desktops/workspaces daily, and what for?
I do but I use i3 Manjaro not W10
Nah. Gimmick.
Didn't use it for the years I exclusively used Linux. Don't use it on w10 either.
Loonix autists cried when Microsoft implemented it and screamed about how it's not a new feature. What they didn't mention was that it is useless.
It's useful on a twm
What should I do with an asus u36s with a broken screen?
>>62041737
install gentoo
>>62041737
fix the screen
>>62041737
server? htpc?
Sup /g/entoomen
I found an old imac. I've always wanted to mess around in ios9 which is almost impossible on modern hardware (even though I heard its shit). What is something fun to do to it?
Its not going in the trash either.
>>62041313
Download Classilla
install gentoo
Bump
Inb4 macfag its legacy hardware so who cares
I was hoping it had osx but nope. No wifi either but had DVD so i'm guessing its from around 2000 or 2001. I was surprised it even booted up. Don't know how to check hardware.
lets start the real CRT debate
does it cause eye cancer?
Probably, but probably not, what is knowledge anyways, is it the stream of consciousness? What is consciousness? Is it being awake, then what does it mean to be awake, anyways, I don't know.
>>62041330
>i don't know
would've sufficed
>>62041246
Most programmers and engineers from the old days are bald and wear glasses with lenses about a 1/4" thick. The radiation did have some effect over the course of 20+ years surrounded by mountains of CRTs and computers all running at once.
Why don't companies care about privacy anymore? Last company I heard that implemented a real privacy measure for users was fucking Whatsapp, and that's just for messages themselves (they still collect when you message someone, for how long, et cetera).
I literally don't care if they collect aggregate statistics, but this is ridiculous. I don't want companies to build a profile on my personal habits.
>>62041237
Uh because they only care about profit, and selling personal information is one of the most popular business models currently. If you don't want them to build a profile, stop using "Free" services like Google, 4chan, reddit, facebook, etc.
If a service is "free" yet the company offering it is making money, ask yourself where that money is coming from.
>>62041237
Because people trade privacy for convenience, and companies take that privacy and make profit from it (which is to be expected, barely anyone makes a product/service thinking they won't make money out of it).
If people would pay for services instead of expecting everything for free there would be no need for the current model.
I have stock Windows 10. I want to rice it so when my friends come over to smoke they wont be let down by lame ass stock shit.
>>62041232
http://bfy.tw.DWHF
>>62041232
Windows ricers are the worst leeches of humanity.
>>62041232
Rainmeter
Worth learning? I hear it will repace C and C++.
>>62041180
No, the only software that even uses it is Mozilla's cuck browser.
>>62041188
Is that because it's a new language or because C++ is superior?
>>62041180
I don't know.
Does Bitlocker work with dual boot, or will I have to use Veracrypt?
Has someone here got something like this to work with Windows 10 + Linux?
stupid. fucking. frogs
>>62041093
use hyper-v
Is there a way I can completely disable network internet access in Windows? So when I dual boot into Windows it doesn't use ethernet at all, even with the ethernet cable still plugged in?
Would disabling the network stack be an option?
Maybe disable the ethernet adapter, but does that carry over each boot, permanently?
tinker with it and learn something faggot, we aren't tech support.
you need to completely remove your network drivers, the easiest way to do this is delete the sys 32 folder in your c drive, then reinstall any necessary drivers from a USB (video/mouse/keyboard), otherwise windows will reinstall network drivers automatically
>>62040987
not from within the OS.
require a key to access the internet through your router and keep the place the key is stored on your other partition encrypted so that the windows partition has no way to access it
Alright /g/, what's the best desktop web browser overall?
>inb4 Brave
>>62040965
Waterfox/palemoon
>>62040965
chromium or whichever one of its open source forks you're comfortable with
>>62040965
GNU Icecat
One side of my headphones stopped working again.
>>62040897
Stop treating them like shit.
>>62041023
Every pair of earbuds or headphones I've ever owned eventually stopped working and it was always the left one too that stopped working.
Thoughts on Sleipnir?
What?
>>62040766
Isn't it just Chrome with a horrible address bar and godly text rendering?
I don't download anything Slavic.
Program in forth: be shady as fuck.
>>62040709
He was right though, read his manifesto
>>62041087
who