摘要: Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For 阅读全文
posted @ 2018-10-19 18:00 一丝清风一抹红尘 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in 阅读全文
posted @ 2018-10-19 17:32 一丝清风一抹红尘 阅读(105) 评论(0) 推荐(0) 编辑
摘要: ou are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality ch 阅读全文
posted @ 2018-10-19 16:38 一丝清风一抹红尘 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-10-19 16:36 一丝清风一抹红尘 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文
posted @ 2018-10-19 12:44 一丝清风一抹红尘 阅读(153) 评论(0) 推荐(0) 编辑