nums1.length == m + n nums2.length == n 0 <= m, n <= 200 1 <= m + n <= 200 -10^9 <= nums1[i], nums2[j] <= 10^9
Easy
20
String Compression
1 <= chars.length <= 2000
Easy
21
Find the Difference of Two Arrays
Easy
25
Delete the Middle Node of a Linked List
Easy
22
Unique Number of Occurrences
Easy
23
Determine if Two Strings Are Close
Medium
24
Removing Stars From a String
Medium
26
Write a class called MyRegex which will contain a string pattern. You need to write a regular expression and assign it to the pattern such that it can be used to validate an IP address. Use the following definition of an IP address:
Easy
27
Simple Bill Problem
The input list can contain between 2 and 1 0 5 10 5 integers. Each integer can be in the range of 0 0 to 1 0 9 10 9 .
Medium
28
time-conversion
All input times are valid
Easy
29
mini-max-sum
Easy
36
Check if Array is Sorted
The array size will not exceed 1000.
Easy
37
Find the Maximum Element in an Array
The array size will not exceed 1000.
Easy
39
Remove Duplicates from an Array
The array size will not exceed 1000.
Easy
38
Insert an Element into an Array
The array size will not exceed 1000
Easy
40
Find the Second Largest Element in an Array
The array size will not exceed 1000.
Medium
41
Merge Two Sorted Arrays
Medium
42
Find Maximum Occurrence Value
The array size will not exceed 1000. & The integer values in the array are non-negative.
Medium
43
Sum of Array Elements
The array size will not exceed 1000 elements.
Medium
2
Arithmetic Operations
Easy
3
Grade Classification
Easy
4
Maximum of Three Numbers
input integers:-2147483648 to 2147483647
Easy
5
Swap
The input integers should be within the range of typical 32-bit integers: -2147483648 to 2147483647
Easy
6
Leap Year Check
Easy
7
Reverse an Array
Maximum array size is 1000.
Easy
8
Prime Number
The integer will be a non-negative number.
Medium
9
Factorial Calculation
Easy
10
Conditional Rendering Days in month
Easy
11
even or odd
Easy
66
Compare Two Integers
Both integers should be within the range of int (-2,147,483,648 to 2,147,483,647).
Easy
67
Check Positive or Negative
The integer should be within the range of int.
Easy
68
Find the Largest of Two Numbers
Both numbers should be within the range of int
Easy
69
Determine Grade Using Switch Case
Input should be an integer from 1 to 5.
Easy
70
Check if Number is Divisible by 3 or 5
The integer should be within the range of int.
Easy
71
Find the Day of the Week
Input should be an integer from 1 to 7.
Easy
72
Find the Smallest of Three Numbers
All three integers should be within the range of int.
Easy
73
Determine the Number of Days in a Month
Input should be an integer from 1 to 12.
Easy
74
Calculate Absolute Value
The integer should be within the range of int.
Easy
75
Check if a Character is a Vowel or Consonant
The input should be a single character. The character can be either an uppercase or lowercase letter.
Easy
76
Check if Two Numbers are Equal
Both integers should be within the range of int.
Easy
77
Determine Character Type
The input should be a single character.
Easy
78
Simple Calculator Using Switch Case
Both numbers should be within the range of int. The operator should be one of +, -, *, /.
Easy
79
Convert Numerical Grade to Letter Grade Using Switch
The input should be an integer from 1 to 5.
Easy
80
Check if a Character is an Alphabet, Digit, or Special Character
The input should be a single character.
Easy
81
Print a Message
None.
Easy
82
Variable Assignment and Output
None.
Easy
84
Boolean Check
Input is an integer.
Easy
83
Addition of Two Floats
None.
Easy
85
Compare Two Floats
Input is two floats.
Easy
86
Check if a Character is Uppercase
Input is a single character.
Easy
87
Arithmetic Operations Using Functions
Inputs are two integers.
Easy
88
Square Root Calculation Using Math Functions
Input is a positive number.
Easy
89
Power Calculation Using Math Functions
Inputs are two positive numbers.
Easy
90
Modulus Operation
Inputs are two integers.
Easy
91
Check Odd or Even Using Functions
Input is an integer.
Easy
92
Calculate Compound Interest
Inputs are principal, rate, time, and number of times interest applied.