### Ninjo's blog

By Ninjo, 2 months ago, ,

Motivation
In this article, I am going to show you how we can improve the computing power of simple API script from total overall (6 minutes and 17 seconds) to (1 minute 14 seconds)

The Idea
I will share with you one of my simple favourite technique that I prefer to use especially when I work on data science tasks such as data visualization, data analysis, code optimization, and big data processing.

Processing a task in a sequential way may take a long time especially when we are talking about a huge amount of data(eg. big inputs) ...

Continue reading my full post: https://khaledalam.net/api-multiprocessing

• -26

By Ninjo, 8 months ago, ,

Hello Codeforces,

today I want to introduce my new Clipboard Manager tool. If you are Linux user and suffering from clipboard messy and overwriting over recent copied texts before using them like me:), then give my new tool a try.

https://github.com/khaledalam/Clipboard-Manager

screencast

if you find this project useful or interesting please give GitHub repo a Start :)

• +4

By Ninjo, 11 months ago, ,

Hello World!
My name is Khaled, I'm a programmer. In the past, I taught some junior students problem solving onsite, prepared some programming(contests) and published some online content/videos about programming ~5 years ago(since 2014) and I saw how that helped hundreds of people worldwide (result from old channel ex.1, ex.2 ). but i stopped sharing for some years.
Recently i decided to start sharing again and planned to do my best to present something more useful than any time before:)

i hope to see some support by subscribing to channel if you are interesting

my related blog: Solve cp problem in different languages

any suggestions are welcome!
thanks guys

• +3

By Ninjo, 12 months ago, ,

Motivation:
In google code jam 2019, in the qualification round something interesting happens with me.
The first problem Foregone-Solution, simple problem: given number N and want you to print two numbers A and B such that A+B = N, and neither A nor B contains any digit that is a 4.

We have 3 test sets:
1 < N < $10^5$
1 < N < $10^9$
1 < N < $10^{100}$

Numerical implementation solution for the first 2 test sets: https://ideone.com/MZwocZ i got TLE on second test set N < $10^9$

When i try to generate A and B randomly: https://ideone.com/LUFyhI i got AC (can anyone explain why that happens)

Topic:
That makes me wonder, we use algorithms to get better, faster and optimal solutions for example if we have N elements with for example binary search we can find any element in the best case in 1 step and in the worst case in ($lg N$) steps

Well but the question is, if we search for element randomly is not possible to get element in just 1 step also or less than ($lg N$) steps or maybe in N steps

why we do not use both randomization and binary search for example $\frac{(lg N)}{2}$ steps use randomization and $\frac{(lg N)}{2}$ steps use binary search Or why not use 1 step randomization, 1 step binary search, 1 step randomization, 1 step binary search and so on..

The answer is because we maybe can’t find the number in those ($lg N$) steps or we maybe need more than ($lg N$) steps to find the number.

Well but we can during randomization steps update interval for binary search and during binary search update interval for randomization. which will decrease searching space and increase the probability of finding our target fast.. example

The idea i want to discuss: is it better to use randomization before/during performing some algorithms or not?

• +14

By Ninjo, 15 months ago, ,

Hello Codeforces!

I record short videos showing how to to solve simple problem in most used programming languages and explain the codes.

I hope those videos help some people someday.

Solve codeforces problem in:

 playlist Non-linked langs(todo) DELPHI C C++ C# JAVA SCALA PHP NODE.JS KOTLIN RUBY GO PYTHON PERL JAVASCRIPT PYPY HASKELL ... ... ... ...

if you are interesting and want to see more new videos related to programming,

• +12

By Ninjo, 3 years ago, ,

Hello, Codeforces!
Today i want to introduce Codeforces Green Dot google chrome extension. Check your friends list status and submissions fast and easily and be up to date with platform blog actions.

New web app(codeforcesgreendot.com/dashboard) created!

you must register here to use app. to get your API keys from here

According to my poll ^ about creating codeforces green dot mobile app.
Result: (78% Yes | 22% No) total: 76 voters

[STATISTICS]
92 registered users



telegram: https://t.me/CfGreenDot

[UPD]: >> web domain has changed ".com" instead of ".cf" http://codeforcesgreendot.com