Write an algorithm to determine if a number is “h […]
模拟实现LRU算法
Write an efficient algorithm that searches for a value […]
Given an array of size n, find the majority element. Th […]
Given a linked list, reverse the nodes of a linked list […]
Given a string s1, we may represent it as a binary tree […]
Write a program to find the node at which the intersect […]
Given a linked list, return the node where the cycle be […]
Given a linked list, determine if it has a cycle in it. […]
Remove all elements from a linked list of integers that […]
最近在复习链表的常用操作,顺便整理到博客中方便以后复习。 1.链表定义 对于单向链表来说,包括数据域和指针域, […]
Given two words word1 and word2, find the minimum numbe […]
You are climbing a stair case. It takes n steps to reac […]
Given an input string (s) and a pattern (p), implement […]
Given a string containing just the characters ‘(& […]