Community Profile

# Binbin Qi

### China University of Petroleum

3,842 total contributions since 2009

Professional Interests: Machine Learning/ Math/ Geophysics

View all

Contributions in
View by

Solved

Positive Definiteness of a Matrix
Determine if input matrix is positive definite or not.

3 hours ago

Solved

Determina el número de cifras de un número
Crea una función que te devuelva el número de cifras de un número. Algunos ejemplos para ayudarte serían: El número 125 tie...

3 hours ago

Solved

En passant - 01
This is white's turn. The player moves his pawn. The pawn's previous and current positions are given. Determine whether th...

6 hours ago

Solved

Seconds
Given the number of seconds after 12 am, find the time in the given format (12/24). If the format is not mentioned, use 24-ho...

6 hours ago

Solved

Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

7 hours ago

Solved

Abelian Sandpile - 02
Generate a matrix like Abelian Sandpile where the four corner element is n. For example, n=4 [4 3 2 1 ...

23 hours ago

Solved

Abelian Sandpile - 01
Generate a matrix like abelian sandpile where the center of the matrix is n. For example, n=3 out=[0 0 0 0 ...

23 hours ago

Solved

Maya long Count
Given a Mayan date, calculate the number of days after the end of the last Great Cycle. <https://en.wikipedia.org/wiki/Maya_c...

23 hours ago

Solved

Fault in our Stars - 02
Create a window pattern with h-horizontal bars and v-vertical bars. For example, for h=4,v=4 '**********' '* ...

23 hours ago

Solved

Fault in our Stars - 01
Create a ladder pattern with n-steps and b-width. For example, For n=2, b=5 -- the ladder would look like - '* ...

23 hours ago

Solved

Find an optimal placement of coolers on a grid
In a certain chemical plant, 6 new pieces of cooling equipment (coolers) are to be installed in a vacant space. This vacant spac...

1 day ago

Solved

Count the number of folds needed to pack a large sheet
In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

1 day ago

Solved

Kissing Circles-01
Three circles are mutually tangent to each other and also to a line. find the radius of the smallest circle. The radius of th...

1 day ago

Solved

Number generator
In this problem, a number will be given. starting with the first digit, keep on adding all subsequent digits till the state (...

1 day ago

Solved

How lucky r u ?
Find the nth number in the following sequence <https://oeis.org/A264940>

1 day ago

Solved

Sieve of Eratosthenes
Find the nth lucky prime number. <https://planetmath.org/luckyprime> can u find a way for large n?

1 day ago

Solved

Combinatorics - 01
* Input=[x,n] * where x is an array of numbers(or strings) and n is a +ve number. for example, x=[1,2] and n=6. The out...

2 days ago

Solved

chess position
given the position of a chess piece in algebric notation, convert it into 8 by 8 matrix format. For example, * 'Qd5' >> [3,4]...

2 days ago

Solved

Castling-03
Given the position of different chess pieces on the chessboard, figure out whether castling is valid or not in the next move (wh...

2 days ago

Solved

Castling-02
This is a follow up of problem <https://www.mathworks.com/matlabcentral/cody/groups/1/problems/45329-castling-01> Given...

2 days ago

Solved

Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

2 days ago

Solved

Decimal Fraction to binary conversion
Given an fraction decimal number n, convert it to its equivalent binary number. If it is an infinite binary fraction, keep it...

2 days ago

Solved

Kolakoski Sequence
This is a modified version of the kolakoski sequence. Refer to the problem <https://www.mathworks.com/matlabcentral/cody/p...

2 days ago

Solved

Orthogonal Circles
Check whether two given circles are orthogonal or not. Two circles are orthogonal if they create a right angle at their inter...

3 days ago

Solved

No of squares in a grid
given a m*n grid calculate the no of possible squares & rectangles on that grid. output: y=[no of rectangles , no of sqa...

3 days ago

Solved

Yoonir - 03
Find the area of a seven-pointed star inscribed in a circle of radius r.

3 days ago

Solved

Assess the scatter of wind turbines in a field
The renewable energy industry is on the rise in many countries--- and one of the key players is wind energy. It is believed ...

3 days ago

Solved

Characterize fluid flow in a pipe as to laminar or turbulent
In fluid mechanics, characterizing the flow in a pipe is essential to predicting its behavior. The flow pattern can either be la...

3 days ago

Solved

Compute the missing quantity among P, V, T for an ideal gas
Consider 100 mol of helium gas at a certain pressure (P), volume (V), and temperature (T). Assuming that the ideal gas law appli...

3 days ago

Solved

Find an overlap in the cleaning schedule of two tank reactors
In a certain pharmaceutical production company, there are two tank reactors operating simultaneously and independent of each oth...

3 days ago