greptilian logo

IRC log for #friendlyjava, 2019-08-23

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
06:31 nanoz joined ##friendlyjava
06:32 nanoz hi aditsu pdurbin
06:32 nanoz i'm planning for my startup which earns atmost 3000$
06:33 nanoz do you like to get part :)
11:10 nanoz joined ##friendlyjava
11:12 Jantz joined ##friendlyjava
12:16 Jantz_ joined ##friendlyjava
14:16 Jantz joined ##friendlyjava
15:17 nanoz hi
15:18 nanoz for the problem need you're help https://www.codechef.com/problems/CSUB pdurbin aditsu
15:18 nanoz i'm able to generate 15 subset for the input 1111 but the output claims to be 10
15:18 nanoz aka 10 subset matches the input
15:21 aditsu are they continuous?
15:24 nanoz means?
15:24 aditsu no gaps
15:27 nanoz ah!
15:27 nanoz crap
15:40 nanoz should i need to generate subsets then remove the unordered aka non-continuous strings?
15:40 aditsu unordered is a different thing; you don't need to generate all the subsets
15:42 aditsu (well.. you don't really need to generate any subset)
15:46 nanoz okay will this work
15:46 nanoz pseudocode
15:47 nanoz 1> concat all test the sequence - if true increment the count
15:48 * nanoz thinking how about a loop
15:48 nanoz add all from ith index , then subtract from the end one by one
15:49 nanoz thats it isnt so aditsu
15:50 aditsu it's very unclear, but seems horribly inefficient
15:50 aditsu it might work though, depending on what you mean
15:52 nanoz 2 loops
15:53 nanoz outer loop is the ith index
15:53 nanoz inner loop moves from nth index to i
15:58 aditsu and what does the inner loop do?
17:03 Jantz https://pastebin.com/0cqjmhHb
17:03 Jantz is there any inheritance, polymorphism, or encapsulation going on here?
17:36 aditsu Jantz: not really
17:37 Jantz yeah ok thanks aditsu i didnt think only a little encapsulation on the class i thought
17:41 aditsu Jantz: you may be interested in this: https://stackoverflow.com/a/25899414/179864
17:42 Jantz yeah thanks will definately go over it, is it Java?
17:42 aditsu sure
19:38 nanoz k its working aditsu
20:40 Jantz how are you nanoz?
20:49 nanoz good Jantz
20:49 Jantz good to hear nanoz
20:49 nanoz is there anything you want from me Jantz
20:50 Jantz are you a java professional? not really
20:53 Jantz just after a bit o friendly chat
20:53 Jantz you must be busy all good
20:57 Jantz https://pastebin.com/0cqjmhHb
20:58 Jantz what is String acting as on line 4?
20:58 aditsu that's the type of the method argument called "name"
21:00 Jantz so its the sayHello method with an argument called name which is of a String type or something like that?
21:00 aditsu yeah
21:06 Jantz ok cool thanks
21:14 nanoz Jantz, is java you're first language
21:15 aditsu nanoz you should learn the difference between "your" and "you're"
21:16 nanoz hmm
21:16 nanoz good point
21:16 aditsu https://theoatmeal.com/comics/misspelling
21:21 Jantz i did a little C but Java is my first indepth language for sure well i guess im still touching the tips nanoz
21:29 Jantz so is english not your first language nanoz?

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode