Блог пользователя terserah

Автор terserah, история, 7 лет назад, По-английски

Hello, i am struggling to solve this problem from SPOJ. Can anybody give me some hints? Thanks in advance!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

Автор terserah, история, 7 лет назад, По-английски

Hello, can anybody give me hints for this problem? I think heavy light decomposition could handle the type-1 query, but how about the type-2 query?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

Автор terserah, история, 9 лет назад, По-английски

Hi!

I just learned to implement suffix array. I got quite confused about why i need to add a terminating character to my input string such as a '$' or '#'. I tried solving problem without the terminating character, some got accepted, some got WA. Any comments? Thank you so much!

FYI, i learned suffix array from CP 3 by Steven and Felix Halim.

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор terserah, история, 9 лет назад, По-английски

Hello. I'd like to ask how to request CF API using AJAX. Here is my code :

$.ajax({
       type : "GET" , 
       url : "http://codeforces.com/api/problemset.problems?tags=implementation",
       success : function(data) {
           alert("success");
       } , 
       error : function(data) {
           alert('fail');
       }
});

The AJAX call returns nothing. How do I solve this issue? Thanks!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

Автор terserah, 11 лет назад, По-английски

Is it possible to solve Uva 11790 using O(n log k) LIS? I kept getting WA using O(n log K) LIS, so i change to O(n^2) and get accepted. The problem's constraint is not clear though :(

Link : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2890

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор terserah, 11 лет назад, По-английски

Hello everyone!

recently I am thinking .. if there is Virtual Participation for contest, why there isn't Virtual Rating Change. Sometimes it is good to know our rating changes (at least for me). What do you guys think?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -19
  • Проголосовать: не нравится

Автор terserah, 11 лет назад, По-английски

is there a way to sort the problem in the problemset according to their tag? for example, i'd like to see all data structure problems, then the problemset only show the problem related to data structure. Thanks in advance !

Полный текст и комментарии »

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

Автор terserah, 11 лет назад, По-английски

I recently studied about greedy algorithm. But all I do is guessing. Can someone share a good documentation about proofing a correctness of greedy algorithm? Or maybe greedy algorithm is based on guess?

Thanks in advance! Happy Coding!

Полный текст и комментарии »

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

Автор terserah, 12 лет назад, По-английски

hmm.. i wonder.. what compiler is similar to GNU C++? recently i got really confused. my program output correct answer on my computer, but the judge give me "wrong answer" verdict. can somebody help me? sorry for my bad english :D

Полный текст и комментарии »

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится