摘要:
Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, 阅读全文
摘要:
Difficulty: Hard More:【目录】LeetCode Java实现 Description Validate if a given string can be interpreted as a decimal number. Some examples:"0" => true" 0. 阅读全文
摘要:
Difficulty: Medium More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/string-to-integer-atoi/ Implement atoi which converts a string t 阅读全文
摘要:
本文根据《大话数据结构》一书,实现了Java版的直接插入排序。 更多:数据结构与算法合集 基本概念 直接插入排序思路:类似扑克牌的排序过程,从左到右依次遍历,如果遇到一个数小于前一个数,则将该数插入到左边所有比自己大的数之前,也就是说,将该数前面的所有更大的数字都后移一位,空出来的位置放入该数。 J 阅读全文
摘要:
Difficulty: Easy More:【目录】LeetCode Java实现 Description Given a string, you need to reverse the order of characters in each word within a sentence while 阅读全文
摘要:
Difficulty: Medium More:【目录】LeetCode Java实现 Description Given an input string, reverse the string word by word. Example: Note: A word is defined as a 阅读全文
摘要:
Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/implement-strstr/ Implement strStr(). Return the index of the first 阅读全文
摘要:
Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/valid-palindrome/ Given a string, determine if it is a palindrome, 阅读全文