Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = …
298. Binary Tree Longest Consecutive Sequence
/* * 298. Binary Tree Longest Consecutive Sequence My Submissions QuestionEditorial Solution Total Accepted: 9…
[Leetcode] 003 Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given “…
360. Sort Transformed Array
Given a sorted array of integers nums and integer values a, b and c. Apply a function of the form f(x) = ax2 +…
378. Find the kth smallest number in at row and column sorted matrix
/* * 378. Find the kth smallest number in at row and column sorted matrix. */ public class KthSmallest { publi…
371. Sum of Two Integers
My Submissions Difficulty: Easy Contributors: Admin Calculate the sum of two integers a and b, but you are not…
255. Verify Preorder Sequence in Binary Search Tre
/* * 255. Verify Preorder Sequence in Binary Search Tree Total Accepted: 8634 Total Submissions: 23097 Difficu…
374. Guess Number Higher or Lower
**Description**Hints**Submissions**Solutions Total Accepted: 46483 Total Submissions: 133710 Difficulty: Easy …
73. Set Matrix Zeroes
/* * 73. Set Matrix Zeroes QuestionEditorial Solution My Submissions Total Accepted: 70785 Total Submissions: …
404. Sum of Left Leaves
My Submissions Total Accepted: 11811 Total Submissions: 25597 Difficulty: Easy Contributors: Admin Find the su…
247. Strobogrammatic Number II
My Submissions Total Accepted: 10689 Total Submissions: 30073 Difficulty: Medium A strobogrammatic number is a…
[2D Matrix] 130. Surrounded Regions
130-. Surrounded Regions Total Accepted: 55559 Total Submissions: 339215 Difficulty: Medium Given a 2D board c…