LV0

PDD面试官问我如何上楼，有点懵圈

You are climbing a stair case. It takes n steps to reach to the top.

算法养成记：移除元素

Given an array nums and a value val, remove all instances of that value in-place...

听说全部看懂Arrays.sort的都被面试官录取了

1.可以直接排的基本数据类型是：int,long,short,char,byte,float,double,其余类型都归于对象类，Object[]；注意是没有b...

算法养成记：最后字符长度

Given a string s consists of upper/lower-case alphabets and empty space characte...

算法养成记：实现 strStr()

Return the index of the first occurrence of needle in haystack, or -1 if needle ...

深入理解Arrays.sort，怼哭面试官

1.可以直接排的基本数据类型是：int,long,short,char,byte,float,double,其余类型都归于对象类，Object[]；注意是没有b...

算法养成记：合并两个有序链表

Merge two sorted linked lists and return it as a new list. The new list should b...

算法养成记：删除排序数组中的重复项

Given a sorted array nums, remove the duplicates in-place such that each element...

算法养成记：最长公共前缀

Write a function to find the longest common prefix string amongst an array of st...

算法养成记：回文数判断

Determine whether an integer is a palindrome. An integer is a palindrome when it...

算法养成记：有效括号

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', d...

算法养成记：Reverse Only Letters

Given a string S, return the "reversed" string where all characters that are not...

Java内存区域与溢出异常

Java虚拟机在执行Java程序的过程中会把所管理的内存划分为若干个不同的数据区域。这些区域都有各自的用途，以及创建和销毁的时间。有的区域随着虚拟机进程的启动而...