摘要:
题目描述:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra spac... 阅读全文
摘要:
题目描述:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:此题目要求为判断一个链表是否有环,这应该说是一个经典的面试题目。只需... 阅读全文
摘要:
题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the de... 阅读全文
摘要:
题目描述:mplement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not pos... 阅读全文
摘要:
提交了格灵深瞳的简历后,收到需要先进行一个简单的技术测试的通知,临时抱佛脚,先刷刷上面几道题:题目要求A zero-indexed array A consisting of N integers is given. Anequilibrium indexof this array is any i... 阅读全文
摘要:
题目描述:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路:题目的意思呢,就是寻找一组字符串中,字符串使用相同数量的相... 阅读全文