Search found 2 matches

by poka
Fri Dec 19, 2008 1:48 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 48875

Re: 673 - Parentheses Balance

Thanks, my program was accepted, just one system.out.println() was wrong....
by poka
Wed Dec 17, 2008 2:34 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 48875

Re: 673 - Parentheses Balance

Could anyone help me, i don't know why i got WA. Here is my code in java. import java.io.*; import java.util.*; public class Main { public static boolean oklepaji(String niz) { Stack<Character> s = new Stack<Character>(); for (int i = 0; i < niz.length(); i++) { char znak = niz.charAt(i); if (znak =...

Go to advanced search