Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculate Time complexity of this algorithm...

Featured Replies

Those deleted posts sad.png

 

 

Sorry :feels:

No more spamming this thread please. Next person to post an irrelevant comment will be punished. 

 

 

But its in spam ?

 

 

Why was this thread moved to Spam? It was originally in the Programming section.

 

Maybe we should have a programming questions section in there if this is considered off topic?

Why was this thread moved to Spam? It was originally in the Programming section.

 

Maybe we should have a programming questions section in there if this is considered off topic?

 

It wasn't in spam? :???: 

Why was this thread moved to Spam? It was originally in the Programming section.

 

Maybe we should have a programming questions section in there if this is considered off topic?

 

I havent seen this post when it went up but it says spam when i got to it. 

I havent seen this post when it went up but it says spam when i got to it.

I don't follow the spam section, I do follow the programming section however, which is how I saw the thread in the first place. I may be wrong but I'm pretty sure it was in programming

I don't follow the spam section, I do follow the programming section however, which is how I saw the thread in the first place. I may be wrong but I'm pretty sure it was in programming

I think it was moved. OP would have gotten notification.

  • Author

I normally don't code bash but jesus fuck this is terrible.

 

 I mean it wasn't supposed to be coded, and i tossed it together to prove the complexities. What's so bad about it?

free doot.gif

 I mean it wasn't supposed to be coded, and i tossed it together to prove the complexities. What's so bad about it?

I don't think you understand what a tree data structure is. Tree's have explicit parent pointers with a set of children (which makes up each "branch"). You defined a linked list, not a tree. On top of that you explicitly defined value as an int which is just lazy considering there are easy to implement generic types.

  • Author

I don't think you understand what a tree data structure is. Tree's have explicit parent pointers with a set of children (which makes up each "branch"). You defined a linked list, not a tree. On top of that you explicitly defined value as an int which is just lazy considering there are easy to implement generic types.

 

 

I've used this data structure plenty of time to represent a binary tree. The basic data structure consisting of a value, leftChild, rightChild is commonly used amongst programmers. So you are complaining about that? Secondly, i don't know if you could tell but this was an algorithm specific question, not a java one. My attempt was not to use language specifics, such that the algorithm was less dependent on a specific language. I mean if you just look at the problem, why would I go overkill and add generics if all the values at a node are ints.. Would you like me to check if the returning value was affected my overflow too doge.png ? 

Edited by Qubit

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.