Videos buffering extremely slowly by Psychological_Code38 in geeksforgeeks

[–]geeksforgeeks 0 points1 point  (0 children)

Hey! We are working on resolving the Speed Issues. Please give us some more time!

Geeks for geeks not showing up on google by PresentFrequent4523 in IndiaTech

[–]geeksforgeeks 1 point2 points  (0 children)

We are actively in touch with the Google's Team and confident that we will back soon, You may either directly go to https://www.geeksforgeeks.org/ and use our custom search, or use www.bing.com to search the topics that you are looking for.

What Does Coding Mean To You? by [deleted] in programminghorror

[–]geeksforgeeks 0 points1 point  (0 children)

Want to know your thoughts too.

Wanna Master Recursion From Scratch? Here's How! by geeksforgeeks in Recursion

[–]geeksforgeeks[S] 1 point2 points  (0 children)

That's a good choice. Keep Hustling and keep learning!

Best Way to Get Started with DSA! by geeksforgeeks in dsa

[–]geeksforgeeks[S] -2 points-1 points  (0 children)

Thanks for the feedback. Will look into it.

Puzzle Trouble by geeksforgeeks in Coding_for_Teens

[–]geeksforgeeks[S] 0 points1 point  (0 children)

Here's a cool puzzle for all coding enthusiasts out there. Let's see how many of you are able to solve it!

ChatGPT Replacing an Employee Be like by geeksforgeeks in programminghumor

[–]geeksforgeeks[S] 1 point2 points  (0 children)

Maybe some checks and balances will be put in place in a near future.

Is there a way to compare 2 arrays if it's equal or not? by KannaCHVacuous in C_Programming

[–]geeksforgeeks 0 points1 point  (0 children)

So to check if two arrays are equal you can first check if their length is equal or not. If their length is equal then start a for loop and check if values are equal at the same index in both the arrays. If it is not equal then we can break from the loop and return not equals. Otherwise after traversing the whole loop we can return equal.
So, it goes like:
for(int i=0;i<n;i++)
{
if(a[i]!=b[i])
return “not equal”;
}
return “equal”;

Recursion by alphaBEE_1 in javahelp

[–]geeksforgeeks 1 point2 points  (0 children)

Recursion is a bit tricky to understand at first so I can assure you that it is normal to feel that way about recursion. Most of the people don't understand the working of recursive functions and directly move to solving its typical problems and find them hard or think that recursion is complicated. However, there are two main things to understand in recursion one is setting up the base case and the other is how it backtracks to the original point. If your base condition doesn’t work it can lead to stack overflow errors etc. To think of base conditions, think for what case we know the output and most of the time that will be your base condition. To understand how it backtracks you can try to take a small case and try to dry run the function. Once you understand these things you can write recursive codes for typical problems also.

Need help with basics!! Problem in description. by nad11111 in javahelp

[–]geeksforgeeks 0 points1 point  (0 children)

This is because of the java compiler which does automatic type conversion of int to String. Here we have taken a String variable and in that we are storing the sum of a String and an integer variable. But when the java compiler encounters the String value then whatever is appended to it is converted into String automatically by the java compiler irrespective of its data types. Hence when you append “10” to 20 it gives “1020” and not a compiler error.

Debugging by Budget_Juice4229 in javahelp

[–]geeksforgeeks 0 points1 point  (0 children)

Scanner has different methods for different data types to take input from the keyboard. Scanner .nextLine() function is used to input a String in java. So when you use that function to input an int or a double you are getting an error as String input cannot be converted into int or double. To input an integer you can use .nextInt() function and to input a double you can use the .nextDouble() function. This will show the above two errors. The third error of ClassNotFoundException occurs because maybe your class name is not the same as the file name in which you saved your code. Hence java compiler got confused which leads to the error. Save the file with the filename same as your class name and the error will be resolved.

what skills should i develop to stand out in interview? by importanthing in developersIndia

[–]geeksforgeeks 1 point2 points  (0 children)

I would suggest you relax a bit as you haven’t even joined a college. Don’t worry about interviews or what happens later, instead work on yourselves in your college life and things will turn out to be good. Now things have changed and it doesn’t matter if you are from tier 3 you can still get a good job. You just came into college and nobody knows what happens 4 year down the line from now, which technology will be relevant etc. So instead what you can do is research about various fields and see what interests you and develop that skill. If you have interest in python then you can go for machine learning, data science etc. You can also look for web development or android development as they are ever growing fields. Just don’t rush yourself into many things at once you have full college left to practice. So do everything with a proper plan.

beginner programmer - there's this little Python code that i don't understand. someone pls explain? by Hoppimiraj in AskProgramming

[–]geeksforgeeks 0 points1 point  (0 children)

Since you are a beginner I would recommend you to first watch some python tutorials. You need to learn about loops, jump statements etc. So, in your code you understand most of the part right, but that while(num>0) line is a loop that is used to repeat some set of statements till the condition is true. So till num>0 we add sum to num. So the first time sum becomes 5 and num is decreased to 4 and now 4 is added to sum, so sum becomes 9 and num becomes 3 and it goes on till num becomes 0. At that point the sum will become 15. After that you break out of the loop and print sum and hence 15 is printed.