上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 54 下一页
摘要: Given two 32-bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e g , M becomes a s 阅读全文
posted @ 2016-07-20 04:46 北叶青藤 阅读(228) 评论(0) 推荐(0)
摘要: Given a directed graph, design an algorithm to find out whether there is a route between two nodes. Have you met this question in a real interview? Ye 阅读全文
posted @ 2016-07-20 04:16 北叶青藤 阅读(222) 评论(0) 推荐(0)
摘要: Given an integer matrix, find a submatrix where the sum of numbers is zero. Your code should return the coordinate of the left-up and right-down numbe 阅读全文
posted @ 2016-07-20 04:04 北叶青藤 阅读(347) 评论(0) 推荐(0)
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Given a 2D binary matrix filled with 阅读全文
posted @ 2016-07-19 13:28 北叶青藤 阅读(181) 评论(0) 推荐(0)
摘要: Given a 2D boolean matrix filled with False and True, find the largest rectangle containing all True and return its area. Given a 2D boolean matrix fi 阅读全文
posted @ 2016-07-19 11:20 北叶青藤 阅读(164) 评论(0) 推荐(0)
摘要: You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise). You are given an n x n 2D matrix representing an im 阅读全文
posted @ 2016-07-19 07:29 北叶青藤 阅读(199) 评论(0) 推荐(0)
摘要: Implement Queue by Two Stacks Implement Queue by Two Stacks Implement Queue by Two Stacks Implement the following operations of a queue using stacks. 阅读全文
posted @ 2016-07-19 05:41 北叶青藤 阅读(314) 评论(0) 推荐(0)
摘要: Given three strings: s1, s2, s3, determine whether s3 is formed by the interleaving of s1 and s2. Given three strings: s1, s2, s3, determine whether s 阅读全文
posted @ 2016-07-19 02:21 北叶青藤 阅读(172) 评论(0) 推荐(0)
摘要: Given a permutation which contains no repeated number, find its index in all the permutations of these numbers, which are ordered in lexicographical o 阅读全文
posted @ 2016-07-19 00:43 北叶青藤 阅读(332) 评论(0) 推荐(0)
摘要: Given n and k, return the k-th permutation sequence. Notice n will be between 1 and 9 inclusive. Given n and k, return the k-th permutation sequence. 阅读全文
posted @ 2016-07-18 12:57 北叶青藤 阅读(246) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 54 下一页