Problem
Anna has a row of N blocks, each with exactly one letter from A to Z written on it. The blocks are numbered 1, 2, …, N from left to right.[……]
Google Code Jam Training
Problem
As the football coach at your local school, you have been tasked with picking a team of exactly P students to represent your school. There ar[……]
Google Code Jam Lucky Dip
Problem
You are participating in the Grand Kickstart Lucky Dip with many fantastic and amazing prizes (and some not so good ones)!
In this Lucky D[……]
Google Code Jam Even Digits
Problem
Supervin has a unique calculator. This calculator only has a display, a plus button, and a minus button. Currently, the integer N is displa[……]
Google Code Jam Grid Escape
Problem
You are designing a new “escape” adventure that uses a rectangular grid of rooms (unit cells) with R rows and C columns. Each room has four d[……]
LeetCode 168. Excel Sheet Column Title
LeetCode 1018. Binary Prefix Divisible By 5
1 2 3 4 5 | /** * Return an array of size *returnSize. * Note: The returned array must be malloced, assume caller calls free(). */ bool* prefixesDivBy5(i[......]<p class="read-more"><a href="https://www.gerrytang.top/?p=493">Read more</a></p> |
LeetCode 507. Perfect Number
1 2 | bool checkPerfectNumber(int num) { if(num[......]<p class="read-more"><a href="https://www.gerrytang.top/?p=491">Read more</a></p> |
LeetCode 896. Monotonic Array
1 2 3 4 5 | bool isMonotonic(int* A, int ASize) { if(ASize==1)return true; int flag=0; for(int i=1;iA[i-1]){ if(flag[......]<p class="read-more"><a href="https://www.gerrytang.top/?p=489">Read more</a></p> |