All Posts

My Calendar I Problem

LeetCode 729. You are implementing a program to use as...

Knight Probability In Chessboard Problem

LeetCode 688. On an n x n chessboard, a knight...

K-Th Symbol In Grammar Problem

LeetCode 779. We build a table of n rows (1-indexed)....

Find Pivot Index Problem

LeetCode 724. Given an array of integers nums, calculate the...

Exclusive Time Of Functions Problem

LeetCode 636. On a single-threaded CPU, we execute a program...

Escape The Ghosts Problem

LeetCode 789. You are playing a simplified PAC-MAN game on...

Dota2 Senate Problem

LeetCode 649. In the world of Dota2, there are two...


Cherry Pickup Problem

LeetCode 741. You are given an n x n grid...

2 Keys Keyboard Problem

LeetCode 650. There is only one character ‘A’ on the...

How To Set A Default Value For A MySQL Datetime Column

How to set a default value for a MySQL Datetime...

How To Output MySQL Query Results In CSV Format

This query writes results into a CSV file on the...

How To Get A List Of User Accounts In MySQL

MySQL stores the user information in its own database.

How To Find Duplicate Values In MySQL

Do a SELECT with a GROUP BY clause.

Two Sum IV - Input Is A BST Problem

LeetCode 653. Given the root of a Binary Search Tree...

Trim A Binary Search Tree Problem

LeetCode 669. Given the root of a binary search tree...


To Lower Case Problem

LeetCode 709. Given a string s, return the string after...