Author: ACMer
Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the game. …
Design and implement a TwoSum class. It should support the following operations: add and find. add – Add the number to an internal data structure. find – Find if …
Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and …
There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more …
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with …