上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 98 下一页
摘要: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the  阅读全文
posted @ 2018-11-14 22:39 Veritas_des_Liberty 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2018-11-14 21:56 Veritas_des_Liberty 阅读(251) 评论(0) 推荐(0) 编辑
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2018-11-14 21:23 Veritas_des_Liberty 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive intege 阅读全文
posted @ 2018-11-14 19:53 Veritas_des_Liberty 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2018-11-14 16:39 Veritas_des_Liberty 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Example 2: my code: can't determine the 阅读全文
posted @ 2018-11-13 22:31 Veritas_des_Liberty 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Count the number of prime numbers less than a non-negative number, n. Example: Approach #1: C++. Approach #2: Java. Approach #3: Python. 阅读全文
posted @ 2018-11-13 20:22 Veritas_des_Liberty 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + 阅读全文
posted @ 2018-11-12 19:11 Veritas_des_Liberty 阅读(251) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2018-11-12 12:38 Veritas_des_Liberty 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2018-11-12 11:49 Veritas_des_Liberty 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 98 下一页