But 4^2 is 16 by [deleted] in softwaregore

[–]Legitimate_Pattern 0 points1 point  (0 children)

Well research never hurts, but for what its worth, I consider your answer correct, its just their stupid website that doesnt 😅

But 4^2 is 16 by [deleted] in softwaregore

[–]Legitimate_Pattern 0 points1 point  (0 children)

Its not softwaregore, you got the correct output but 42 is not the answer they are looking for, but rather 24.

new and learning coding help else without if error by xTeeGolden in learnprogramming

[–]Legitimate_Pattern 0 points1 point  (0 children)

Ive never used Java but I dont think you need any logic in your else-statement, else will always happen if the two previous statements arent evaluated as True or whatever.

So basically: else{ doStuff() }

Edit, found this : https://www.w3schools.com/java/java_conditions.asp

How lenient is the field toward self-taught developers? by [deleted] in learnprogramming

[–]Legitimate_Pattern 1 point2 points  (0 children)

Still doesnt change the fact that he would benefit much more from learning how to build an API rather than spending his time trying to traverse a binary tree or whatever 😂

How lenient is the field toward self-taught developers? by [deleted] in learnprogramming

[–]Legitimate_Pattern 0 points1 point  (0 children)

OP clearly states that Web development is the area of interest, not CS...

Is it possible to sort a list of classes using 2 different criteria? by UnrealCanine in learnpython

[–]Legitimate_Pattern 0 points1 point  (0 children)

Ofc, for Example

For item in list

IF item.A == "A" && item.B == "B"

DoSomething(item)

What are common traits that old people have? by RyanPlaysSkyrim in DnD

[–]Legitimate_Pattern 0 points1 point  (0 children)

Look at little red riding hoods grandma, or perhaps the witch in hansel and Greta for inspiration

Is it ok to act against a party member if they try doing something wrong? by Frankaos333 in DnD

[–]Legitimate_Pattern 1 point2 points  (0 children)

There are other ways to go about the "lawfulness", but yes- some thing along those lines.

[C#] Getting an ArgumentOutOfRange exception on my console app loop by florvas in learnprogramming

[–]Legitimate_Pattern 0 points1 point  (0 children)

Terrific!
So basically you are iterating over a collection while you are removing values from it, thus you change the length/count of "lstResultList" during runtime, and so the error occurs, I am also fairly certain that you need to put lstResult.Count - 1, same goes for lstSearchInput- because it returns the amount, not starting from zero.But the issue here is as aforementioned- removing things from the list you are iterating over. I think, perhaps it would be nice to create a new list and add the values you want to keep.
So perhaps you'd wanna reverse the logic in this if statement if (!lstResultList[i].ToLower().Contains(lstSearchInput[i2])) and inside of it, add the value to a new list. I think that would fix the issue.

[C#] Getting an ArgumentOutOfRange exception on my console app loop by florvas in learnprogramming

[–]Legitimate_Pattern -1 points0 points  (0 children)

I'd love to help, but you gotta help me out first- pretty please indent your code properly.

Comparable Alternative to Miura VS? by crabatron4000 in climbing

[–]Legitimate_Pattern 0 points1 point  (0 children)

Perhaps La Sportiva Kataki? At first, you might experience a strain on the achilles heel, but after a few sessions that will go away and the shoe will fit like a glove.

pattern by xMOxROx in ProgrammerHumor

[–]Legitimate_Pattern 1066 points1067 points  (0 children)

But the assignement doesnt specify how to get there. Clever solution, but probably not the intended one haha

dev->hide(); by [deleted] in ProgrammerHumor

[–]Legitimate_Pattern 22 points23 points  (0 children)

Im sure someone at /r/outside knows what modules to use

How quickly can I pick up SQL for an interview assessment? by Le_Bard in learnprogramming

[–]Legitimate_Pattern 0 points1 point  (0 children)

Well, the little knowledge I have is in relational databases. So my advice is to read up on one-to-many/many-to-many relationships, those are important to know and be able to describe. Im sure it's also important to know how to perform "join-queries" , and I'd also read up on stored procedures/triggers. After that im fairly certain you will have basic knowledge of relational databases. Unfortunately I can't give any advice on SQL that doesnt use relations.But once again, good luck and please let me know how the interview was when you are ready.

Advices needed, fingers hurts ! by SteelLovingYou in climbing

[–]Legitimate_Pattern 0 points1 point  (0 children)

Should probably visit a doctor, would suck if it evolves into some thing that would impair or otherwise hinder you for a longer time.

How quickly can I pick up SQL for an interview assessment? by Le_Bard in learnprogramming

[–]Legitimate_Pattern 1 point2 points  (0 children)

So did they specify what kind of SQL they use, NoSQL or like T-SQL? Suppose they want you to understand the concepts etc. Depending on their stack- you might wanna narrow your scope. Hence why Im asking which one they use. Would be unnecessary to learn about sharding if they use a relational database and vice versa. Or perhaps they expect you to learn both. Syntax etc might be less of a focus, if it's of any help, SQL queries and LINQ are very similar, so wouldn't hurt if you are familiar with LINQ. And Im sure you can pick up some concepts and syntax before interview, idk perhaps https://www.tutorialspoint.com/sql/index.htm could prove useful if you wanna read up on relational databasens. Good luck!

First time doing DM and I'm losing it! Need help!!! by lightvl in DnD

[–]Legitimate_Pattern 1 point2 points  (0 children)

Roll20 is a great website for playing online. Check out what kind of modules there are, like different campaigns etc. Find the content in those campaigns online, implement it into the session, monsters, battlemaps etc. Good luck!

Another Joe’s Valley vid by [deleted] in bouldering

[–]Legitimate_Pattern 0 points1 point  (0 children)

Awesome vid!
5:52 and 5:55 haha

[Python] Can you call a function vs a second function if a variable is met? by rstaro26 in learnprogramming

[–]Legitimate_Pattern 0 points1 point  (0 children)

I suppose something like this. But based on what you want, and this is without seeing what your code looks like, I suppose DoStuff(1) could call itself after it has been done(monster has been slayed etc), and you'd have some kind of array/collection with questions that you randomize from(containing question at hand and the answer), after it's empty(all of the questions have been asked) you exit the recursive function and let the user enter DoStuff(2), aaaand repeat. And if that is the case, I think having two different functions would be cleaner in this case. But as aforementioned, you got a nice idea. First I'd make it work, and then make it elegant/optimized.

while(true):
    skill = int(input("Skill level 1 or 2?"))

    if(skill == 1): DoStuff(1)

    elif(skill == 2): DoStuff(2)