I’m not so good with time complexity, but wouldn’t that still be O(n6 )? n = 1 would result in 1 iteration, n = 2 would result in 64, n = 3 would result in 729, etc.
If you're Finnish, and use Linux, there's a high chance that Ctrl-Alt Gr-x is × and adding shift to that gives you ·.
No-one else gets that though, only people who use the Finnish layout. Don't exactly know why.
Also pressing Ctrl-Alt Gr-l lets you press any key to input any money symbol and pressing Ctrl-Alt Gr-k lets you press any key to input any greek letteρ.
Sure, but the end goal of the comment you responded to was "generate n6 strings." You know the end goal there. Their question was derived but separate from OP.
for( int i = 0; i < myObject.Size( ); i++ )
{
for( int j = 0; j < myObject.Size( ); j++ )
{
for( int k = 0; k < myObject.Size( ); k++ )
{
for( int l = 0; l < myObject.Size( ); l++ )
{
for( int m = 0; m < myObject.Size( ); m++ )
{
for( int n = 0; n < myObject.Size( ); n++ )
{
235
u/frugalerthingsinlife Oct 19 '21
O (no!)
104
u/[deleted] Oct 18 '21
What the hell are you doing that requires nesting six loops?
27
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Oct 18 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
19
u/Auxilor Oct 19 '21
another case of O(fuck)
6
u/Papa_Smuggles Oct 19 '21
What the actual fuck
5
u/MadSquid Oct 19 '21
Rather than going "what the fuck", my brain immediately went, "oh this could be refactored some how."
A recursive function would do well here, me thinks
1
u/RyanNerd shameless Oct 19 '21
Going to run out of letters of the alphabet soon. Should have started with
a0
u/mondie797 Oct 19 '21
why is there a space between brackets myObject.Size( )