- 1
Challenge me to emprove my skills :)
html / php / java / js / c++
12 ответов
+ 6
Only walking deads improve their << kills >> :P
+ 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 ^^)
+ 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("");
}
}
}
+ 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();
}
+ 3
that's absolutely correct @chems
+ 3
@aziz i'll try to resolve it incha'allah
+ 2
I challenge you
can you make this
in "JAVA "
0
10
101
1010
101010
Hint => use loop either for or while process
+ 2
@aziz emproved code thank you , can it emproved more than this ?
+ 2
well I would like to try too.
+ 1
@Irwin what is next :p
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
0
who can resolve it i give him 100 Xps