- 1

Challenge me to emprove my skills :)

html / php / java / js / c++

6th Jul 2017, 12:02 PM
Chemseddine Zara
Chemseddine Zara - avatar
12 Respuestas
+ 6
Only walking deads improve their << kills >> :P
7th Jul 2017, 5:52 AM
visph
visph - avatar
+ 6
My JS attempt: https://code.sololearn.com/Wc322WRTyTfj/#js (I'm not sure of the logic implemented: feel free to test it with various arrays ^^)
1st Aug 2017, 7:32 PM
visph
visph - avatar
+ 3
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; //ideone.com by Zara Chemseddine. class Ideone { public static void main (String[] args) throws java.lang.Exception { for (int i=1; i<10; i++) { for (int j=1; j<i; j++) { if((j%2)==0){ System.out.print("0"); } else{ System.out.print("1"); } } System.out.println(""); } } }
10th Jul 2017, 5:42 PM
Chemseddine Zara
Chemseddine Zara - avatar
+ 3
@Irwan Lopez int length = userinput(); for( int i = 0 ; i < length ; i++) { for ( int j = 0 ; j <= i ; j++) System.out.print(j % 2); System.out.println(); }
1st Aug 2017, 10:45 AM
aziz
aziz - avatar
+ 3
that's absolutely correct @chems
1st Aug 2017, 11:00 AM
Irwin Lopez
Irwin Lopez - avatar
+ 3
@aziz i'll try to resolve it incha'allah
1st Aug 2017, 12:28 PM
Chemseddine Zara
Chemseddine Zara - avatar
+ 2
I challenge you can you make this in "JAVA " 0 10 101 1010 101010 Hint => use loop either for or while process
6th Jul 2017, 12:26 PM
Irwin Lopez
Irwin Lopez - avatar
+ 2
@aziz emproved code thank you , can it emproved more than this ?
1st Aug 2017, 10:59 AM
Chemseddine Zara
Chemseddine Zara - avatar
+ 2
well I would like to try too.
1st Aug 2017, 12:46 PM
Irwin Lopez
Irwin Lopez - avatar
+ 1
@Irwin what is next :p
1st Aug 2017, 11:05 AM
Chemseddine Zara
Chemseddine Zara - avatar
0
i have a challenge little difficult for you: make a boolean function , that's take a integer list as parameter and return true if we can seperate this list into two , the sum of their elements is identic exemple : isSeparatedList([ 2 ,10 ,7 ,1,5,9] ) = true bcz : sum of [10,7] = sum of [2,1,5,9] isSeparatedList( [ 5 , 4 , 3, 1] ) = false
1st Aug 2017, 11:42 AM
aziz
aziz - avatar
0
who can resolve it i give him 100 Xps
1st Aug 2017, 2:08 PM
aziz
aziz - avatar