Tags » Brute Force

Codeforces Round #304

Note to self: Никогаш не користи cin/cout наместо scanf/printf. Може да те чини 1000+ поени. 

Уште еден релативно лесен натпревар за втората дивизија со 4 задачи кои носат помалку од 2000 поени. 470 more words

Ad Hoc

Best Commons of Modern Masters 2015

For starters I’d like to thank all the people that gave feedback on my article, “A Magical Opportunity”. It humbles me to think that people all over the world read my articles and join me in discussion regardless of what side they are on. 546 more words

Magic: The Budgeting

Blocking SSH Brute Force Attacks in MikroTik RouterOS

Mikrotik makes some great networking equipment for both business, and home uses. I’ve used Mikrotik routers both while consulting and for my own personal and business use. 637 more words

Sowftware

Brute Force Algorithm for Pattern Matching

Solution:


#include<stdio.h>
#include<string.h>
int xstrsearch(char*,char*);
int main()
{
char s1,s2;
int i;
scanf("%s%s",s1,s2);
i=xstrsearch(s1,s2);
printf("pattern is found at %d position",i);
return 0;
}
int xstrsearch(char *s1,char *s2)
{
int l1,l2,i,j,k;
l1=strlen(s1);
l2=strlen(s2);
for(i=0;i<=(l1-l2);i++)
{
j=0;
k=i;
while(s1[k]==s2[j]&&j<l2)
{
k++;
j++;
}
if(j==l2)
return i;
}
return -1;
}

Algorithm

How To Front-Run Financial Markets With Your Web Browser

Early access to financial data can mean big profits. Imagine if you could learn the quarterly financial results of a company or macroeconomic statistical data before everyone else? 868 more words

Brute Force

NHRA legend John Force turns 66, not slowing down any time soon

At a time when many people would be embracing retirement, legendary NHRA drag racer John Force just keeps motoring along.

Force, who turned 66 on Monday (May 4), is in the first year of a new multi-year contract with Chevrolet and Peak Antifreeze and Coolant, doesn’t even like to use the “R” word. 271 more words

Avoiding the Dictionary While Learning a Language

辞書使わず言語勉強

It’s been a while since I’ve written something about language learning, but this is worth saying. 1,377 more words

Learning Strategies