「tips and hints」一覧

Let’s calculate the sum of factorials!

The sum of factorials is calculated. It is the sum of integers, but the story does not fit within integers. That's mysterious...

Finding GCD and LCM with C++

We sometimes need to find GCD and LCM for competitive programming. This time I summarized how to write...

How to solve simultaneous linear equation with a tridiagonal matrix

A tridiagonal matrix, a special but easy to use matrix is introduced. Here, looking into a simultaneous linear eq...

Converting decimal numbers to k-decimal with C++

We sometimes need to convert decimal numbers to the k-decimal ones. For example, in the...

Expected value of the number of trials until it occurs with probability p

An expected value of the number of trials with probability p is calculated. It's not so hard to see why but for my understanding I tried to calculate it.

How to remember a rotation matrix

This time I introduced the simple way to remember the rotation matrix. Where is the minus sign? Which comes first, sin or cos? You can easily calculate the matrix if you read this.

Floyd-Warshall algorithm

This time I introduce Floyd-Warshall algorithm that finds the minimum distance between all vertex pairs with O(V^3) complexity. Read this!

n dimensional ball!?

Hello, guys! It's me! Warotan!So...Who are you?→ABOUT ME Japanese...

3 dimensional ball and story of my school life about study

Hello, guys! It's me! Warotan!So...Who are you?→ABOUT ME Japanese...