-
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.
Example 1:
123456789101112Input...
-
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third...
-
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748public class EditDistance { /*...
-
12345678910111213141516171819202122232425262728293031323334public class ShuffleanArray { /** * Shuffle a set of numbe...
-
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748import utils.TreeNode;public class Hou...
-
12345678910111213141516171819202122232425262728293031323334353637383940public class ReverseString { /** * Write a fun...
-
Given a binary tree, return the inordertraversal of its nodes’ values.
Example:
12345678Input: [1,null,2,3] 1 \ 2 ...
-
123456789101112131415161718192021222324252627282930313233343536373839404142434445public class NthDigit { public int fin...
-
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263import j...
-
123456789101112131415161718192021222324252627public class PowerofThree { /** * Given an integer, write a function to ...