【LeetCode】476. Number Complement (java实现)
摘要:原题链接 "https://leetcode.com/problems/number complement/" 原题 Given a positive integer, output its complement number. The complement strategy is to flip
阅读全文
【LeetCode】389 Find the Difference(java)
摘要:原题 Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter
阅读全文
20 Valid Parentheses
摘要:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid bu...
阅读全文
19 Remove Nth Node From End of List
摘要: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 remo...
阅读全文
205 Isomorphic Strings
摘要: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...
阅读全文