程序媛詹妮弗
终身学习
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w 阅读全文
posted @ 2018-10-19 16:37 程序媛詹妮弗 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except n 阅读全文
posted @ 2018-10-19 16:31 程序媛詹妮弗 阅读(151) 评论(0) 推荐(0) 编辑
摘要: There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of non-empty word 阅读全文
posted @ 2018-10-19 15:52 程序媛詹妮弗 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path betwe 阅读全文
posted @ 2018-10-19 15:34 程序媛詹妮弗 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given an undirected graph, return true if and only if it is bipartite. 设G=(V,E)是一个无向图。如顶点集V可分割为两个互不相交的子集V1,V2之并,并且图中每条边依附的两个顶点都分别属于这两个不同的子集 思路 1. base 阅读全文
posted @ 2018-10-19 08:04 程序媛詹妮弗 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the 阅读全文
posted @ 2018-10-19 07:19 程序媛詹妮弗 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2018-10-19 06:14 程序媛詹妮弗 阅读(108) 评论(0) 推荐(0) 编辑
摘要: You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c 阅读全文
posted @ 2018-10-19 05:44 程序媛詹妮弗 阅读(126) 评论(0) 推荐(0) 编辑