Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for GillBates

hello all I'm trying to write a program that returns us [U]majority element[/U]. [I]An array is said to have a majority element if more than half of its entries are the same - [I]>(size of the array)/2[/I].[/I] It wouldn't be a problem if i had no conditions, but i have …

Member Avatar for kal_crazy
1
3K
Member Avatar for GillBates

Greetings! I was looking through this Rabin-Karp algorithm code. Everything is fairly clear to me, except those "-48" numbers (lines 13, 14 and 25)... So I was just wondering if anyone could explain, why are they used for? (maybe for string to int transformation?). Can you please explain it with …

Member Avatar for Ancient Dragon
0
70