LittleMaster_7's blog

By LittleMaster_7, history, 8 years ago, In English

I am searching for list of Data-structure problems for UVA,

Pls suggest me some list if you have any.

thanks in advance. :)

Full text and comments »

  • Vote: I like it
  • +20
  • Vote: I do not like it

By LittleMaster_7, history, 8 years ago, In English

Suppose, there is an array of size N. Find number of elements are less than VAL. The array may contain duplicate values.

for example,

array = [ 1 , 2 , 3 , 1 , 2 ]

VAL = 3

So answer will be = 4.

Can it done by STL. (such as set/multiset ) in logarithmic time

I already googled it ,but failed to find solution with STL.

Thanks in advance.

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it

By LittleMaster_7, history, 8 years ago, In English

SPOJ — Most Frequent Value

I solved this problem using Mo's algorithm.

Is there any Online solution for each query for this problem.

Full text and comments »

  • Vote: I like it
  • +44
  • Vote: I do not like it