一、题目描述
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 difference between i and j is at most k. 题目解读:给一个整数序列nums和一个整数k&am…
一、题目描述 Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists:
A: a1 → a2↘c1 → c2 → c3↗
B: b1 → b2 → b3begin to intersect at node c1. No…
一、题目描述 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 occurrences of a character must be replaced with another character while preserving the order of chara…
一、题目描述 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n 2.After removing the second node from the end, the linked list becomes 1->2->3->5.Not…