LeetCode 206. Reverse Linked List
Description https://leetcode.com/problems/reverse-linked-list/ Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head =…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description https://leetcode.com/problems/reverse-linked-list/ Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head =…
Description https://leetcode.com/problems/count-and-say/ The count-and-say sequence is a sequence of digit strings defined by the recursive formula: countAndSay(1) = “1” countAndSay(n) is the way…
Description https://leetcode.com/problems/valid-anagram/ Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = “anagram”,…
Description https://leetcode.com/problems/valid-palindrome/ Given a string s, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Example 1:…
Description https://leetcode.com/problems/single-number/ Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have…
Total 49 Questions. Array Array type of questions were asked in interviews frequently. You will most likely encounter one during…
Description https://leetcode.com/problems/valid-sudoku/ Determine if a 9×9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each…
Description https://leetcode.com/problems/rotate-image/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have…
Description https://leetcode.com/problems/move-zeroes/ Given an integer array nums, move all 0‘s to the end of it while maintaining the relative order of the…
Description https://leetcode.com/problems/intersection-of-two-arrays-ii/ Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many…