+ 32

Would anyone like me to post codes?

Other than filling the coder part of my chart I would like to actually help someone solve some problem, so I would highly appreciate any ideas about what I should post.

28th Feb 2017, 7:41 AM
Nikolay Nachev
Nikolay Nachev - avatar
29 ответов
+ 29
Sir I need help in this one also. Example: For this function, private static int findMajorityElement(int[] a) throws Exception { int tempCount; int majority = a[0]; int temp = 0; int majorityCount = a.length / 2; for (int i = 0; i < (a.length - 1); i++) { temp = a[i]; tempCount = 0; for (int j = 1; j < a.length; j++) { if (temp == a[j]) tempCount++; } if (tempCount > majorityCount) { majority = temp; return majority; } } // No majority element throw new Exception("No majority element in array"); } If i put array like, int[] arr = { 1, 2, 3, 4, 5, 2, 2, 2, 2 }; The program works fine. But I would like a user to input array size and after that enter the elements of that size and get the output, but i keep getting error. So sir please help me in this one also.
16th Mar 2017, 3:42 PM
Ram chandra Giri
Ram chandra Giri - avatar
+ 26
{Solved}Sir I need help in this one: Generate a Fibonacci sequence list of your input length : https://code.sololearn.com/c47x48HPCmp3/#java Thank you Nikolay sir for your help in this one.
16th Mar 2017, 2:32 AM
Ram chandra Giri
Ram chandra Giri - avatar
+ 21
All the courses in Sololearn teach the basics, right? So, you and some of us can build advanced courses. Consider Java for example. There are many concepts not covered in the course. We can post a web program which works just like Sololearn (lesson, question, lesson, question...) and cover such concepts. A web designer will develop UI and others can write lessons. We can name this code as Learn Java (2.0).
28th Feb 2017, 8:50 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 13
I am not sure if I understand it correctly, but if this question is a requesty-wishy-kinda-thingy, please, oh please post a solver to my Labyrinth generator v.2.0 :) Just something which will find a way from (x1, y1) to (x2, y2) and mark it in a 2D array or as a list of (x, y) coordinates. I'd be honoured, really: https://code.sololearn.com/cL8CKWRqS2XN/#py Много благодаря! ;)
28th Feb 2017, 9:03 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 12
I think you should post in Web cause in rest scope is limited in Code playground you can only get text based outputs which isn't fun make something graphical :-D
28th Feb 2017, 8:09 AM
Utkαrsh
Utkαrsh - avatar
+ 12
If u look my SVG animation, it travels from start to end and then it jumps to start and goes to end. I need help so that it animates from start to end and then end to start in the specified time.In other words it must travel back and forth. For other queries u can help my commenting the code
9th Mar 2017, 11:37 AM
Siddharth Saraf
+ 11
A seed/save generator and interpreter. I had an idea for a game on here, but the only thing I don't know how to do is generate a seed/save so the player can enter it in their next input (since codeplayground limits your inputs to the start of the program) and it'll load where they left off. I suppose the generation will obviously be dependant on the game but maybe you could do it for something else, or even cooler, your own game. In a way I've already done this with my "MMO AI Story" but all the saves were hand coded. (in Python)
28th Feb 2017, 8:11 AM
Ahri Fox
Ahri Fox - avatar
+ 10
Nikolay look my new code Slider PUZZLE the win () function looks very bad ( how can compare 2 arrays?)
5th Mar 2017, 4:43 PM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 10
@Nikolay SLIDER PUZZLE is ready....I have to fix the timer
9th Mar 2017, 11:11 AM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 9
I had a question I couldn't solve it. Tell if a number is Ramanujan Hardy number or not. If a number can be expressed as Sum of cubes of two different numbers in two different ways then it is Hardy Ramanujan number. Ex First is 1729 10³+9³=1729 12³+1³=1729 logic is the thing I would like to know any language will do with preference to C++
28th Feb 2017, 8:04 AM
Megatron
Megatron - avatar
+ 9
<tldr> Tester: Find out what you should learn </tldr> I'd love to have a project which provides a little test for people to find out which programming languages they should learn. There could be asked a few questions like 'What kind of programs would you like to code?' and so on with answers, where you can input points from 1 to 10 (like interested in web development: 8, desktop: 2, mobile apps: 0 ...). After answering the questions the user gets a result, that lists which skills are needed to be e.g. a web, game, android (...) developer and sources to improve their skills. Maybe it could mention some simple projects related to the referring language, too. I hope you know what I mean. I think that would be a big help for community, because a lot of people are asking that kind of questions.
28th Feb 2017, 10:42 PM
Tashi N
Tashi N - avatar
+ 9
@Nikolay Thank you! Can't wait for the solver ;) As I get it, it should find a path from any (x1, y1) to any (x2, y2) and probably mark it with another color, like the digger does :)
5th Mar 2017, 1:29 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 9
hello @Nikolay. I was trying to create an HTML webpage to display the conversions between two languages. after you've looked at the link below, you'll possibly understand what I mean to ask. I want each button ( on being clicked) to display the meaning of that word in the second language. not as alert boxes, but possibly as switches. thanks a lot for your past and future contributions. https://code.sololearn.com/Wo4u9PvYn0gW/#
16th Mar 2017, 4:02 AM
Rahul George
Rahul George - avatar
1st Mar 2017, 6:36 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 8
@Didi, nice game :D I've posted my implementation in your question: https://www.sololearn.com/Discuss/244193/how-comparing-two-arrays-if-are-equall
5th Mar 2017, 6:11 PM
Nikolay Nachev
Nikolay Nachev - avatar
27th Mar 2017, 1:08 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 7
@Kuba Thanks for pointing me in that direction! Took me some time to get into it. So far my maze generator is ready. At first I've tried to translate your code from Python direct, but then I got the idea to visualize the whole algorithm, so more or less had to re-write it all. Nevertheless I'm still generating a map quite similar to yours, only using different symbols :D There it is: https://code.sololearn.com/W6okIyEgMmP6/#js The next code will be a solver :D
5th Mar 2017, 1:20 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 7
@Kuba, Yep that's the idea 😀
5th Mar 2017, 1:32 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 7
@Rahul George in the link you have the answer https://code.sololearn.com/WZ9XSWSqKWbq/?ref=app
16th Mar 2017, 5:18 PM
Didi Georgel Danaila
Didi Georgel Danaila - avatar
+ 7
@Niko Благодаря! :)
27th Mar 2017, 1:42 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar