PROBLEMS

Practice coding problems

Number Sign Check
91.1%Easy
74/100
Sum from 1 to N
78.8%Easy
82/100
Reverse a Number
78.2%Easy
85/100
Sum of Digits from 1 to N
75.1%Medium
76/100
3D Matrix Sum
75.9%Hard
70/100
Matrix Sum and Main Diagonal
50.6%Hard
90/100
Basic Arithmetic Operations
81.1%Easy
100/100
Sum of Two Numbers
65.1%Easy
69/100
Product of digits
79.7%Easy
62/100
Product of digits with validation
47.7%Easy
75/100
Array Sum, Max and Min
47.7%Medium
84/100
Print digits of a 5-digit number
42.6%Easy
79/100
Append digit to number
76.6%Easy
62/100
Delete the third digit of a 5-digit number
73.7%Easy
74/100
Delete the digit at position p
88.8%Easy
89/100
Delete digit at position p with validation
48.6%Easy
91/100
Print the digits of a number
77.5%Easy
75/100
Sum of digits
45.5%Easy
64/100
Number of digits
90.4%Easy
88/100
Number of digits with validation
77.7%Easy
60/100
Largest digit
78.8%Easy
82/100
Largest digit with validation
68.0%Easy
87/100
Smallest digit
82.0%Easy
92/100
Smallest digit with validation
53.9%Easy
60/100
Delete digit at position p from left
91.3%Easy
65/100
Delete digit at position p from left with validation
76.6%Easy
77/100
Delete digit at position p from right
70.6%Easy
89/100
Delete digit at position p from right with validation
90.6%Easy
64/100
Insert digit to the right of position p from left
79.3%Medium
92/100
Insert digit to the right of position p from left with validation
87.7%Medium
91/100
Insert digit to the right of position p from right
95.1%Medium
90/100
Insert digit to the right of position p from right with validation
84.2%Medium
91/100
Insert digit to the left of position p from left
46.4%Medium
86/100
Insert digit to the left of position p from left with validation
73.1%Medium
83/100
Insert digit to the left of position p from right
55.7%Medium
86/100
Insert digit to the left of position p from right with validation
63.1%Medium
85/100
Reverse a number
78.2%Easy
85/100
Reverse a number with validation
65.5%Easy
96/100
Reverse without even digits
43.5%Easy
74/100
Reverse without even digits with validation
91.5%Easy
68/100
Reverse using digits greater than 5
46.6%Easy
74/100
Reverse without even digits with validation
91.5%Easy
68/100
Reverse with duplicated even digits with validation
59.7%Medium
87/100
Reverse with duplicated even digits with validation
59.7%Medium
87/100
Reverse with duplicated odd digits with validation
58.2%Medium
95/100
Reverse without odd digits
57.1%Easy
61/100
Reverse without odd digits with validation
70.4%Easy
92/100
Reverse using only even digits
87.9%Easy
91/100
Reverse using only even digits with validation
78.0%Easy
91/100
Reverse using only odd digits
68.6%Easy
72/100
Reverse using only odd digits with validation
78.0%Easy
70/100
Reverse without digit x
62.0%Medium
75/100
Reverse without digit x with validation
78.2%Medium
61/100
Reverse using digits greater than 5 with validation
50.2%Easy
84/100
Reverse using digits less than 5
50.0%Easy
90/100
Reverse using digits less than 5 with validation
57.5%Easy
94/100
Reverse using digits less than 5 with validation
57.5%Easy
94/100
Remove all even digits with validation
83.3%Easy
96/100
Remove all even digits with validation
83.3%Easy
96/100
Remove all odd digits
63.9%Easy
70/100
Remove all odd digits with validation
63.7%Easy
91/100
Remove digit x
73.5%Easy
83/100
Remove digit x with validation
44.4%Easy
90/100
Remove digits less than k
70.8%Easy
80/100
Remove digits greater than k
77.5%Easy
66/100
Remove digits greater than k
77.5%Easy
66/100
Remove digits greater than k with validation
52.2%Easy
62/100
Remove prime digits
77.9%Medium
93/100
Remove digits at even positions from left
67.9%Medium
83/100
Remove digits at even positions from left with validation
65.7%Medium
66/100
Remove equal consecutive pairs
86.4%Medium
75/100
Insert x after each even digit
60.0%Medium
67/100
Insert x after each even digit with validation
51.1%Medium
67/100
Insert x before each odd digit
79.3%Medium
80/100
Insert x before each odd digit with validation
70.4%Medium
80/100
Insert zero between equal consecutive digits
42.0%Medium
82/100
Insert zero between equal consecutive digits with validation
91.9%Medium
71/100
Insert z after each pair xy
90.2%Hard
79/100
Insert z after each pair xy with validation
84.2%Hard
73/100
Remove all pairs xy
88.0%Hard
59/100
Remove all pairs xy with validation
72.4%Hard
76/100
Insert last digit of double after each even digit
56.0%Hard
93/100
Insert last digit of double after each even digit with validation
64.4%Hard
92/100
Insert one between different consecutive digits
93.7%Hard
79/100
Insert one between different consecutive digits with validation
85.7%Hard
74/100
Maximum digit
66.8%Easy
70/100
Minimum digit
86.0%Easy
63/100
Second maximum distinct digit
47.1%Medium
63/100
Second minimum distinct digit
53.5%Medium
81/100
Three largest distinct digits
57.9%Hard
64/100
Digits in increasing order
66.4%Easy
94/100
Digits in strictly increasing order
55.9%Easy
92/100
Digits in decreasing order
87.3%Easy
58/100
Digits in strictly decreasing order
58.6%Easy
86/100
Mountain number
49.9%Hard
80/100
Equal consecutive pair exists
57.3%Easy
76/100
Count even-odd consecutive pairs
75.5%Medium
73/100
Pair with even sum exists
78.0%Medium
85/100
Count increasing consecutive pairs
84.4%Medium
76/100
Largest consecutive pair
75.3%Medium
88/100
At least two even digits
78.6%Easy
76/100
At least two odd digits
71.1%Easy
69/100
Equal number of even and odd digits
79.7%Easy
80/100
Digit appearing at least twice exists
69.7%Medium
88/100
All digits distinct
48.6%Medium
82/100
Valley number
79.3%Hard
92/100
Valley number
79.3%Hard
92/100
Alternating parity
58.8%Medium
59/100
Zig-zag number
82.6%Hard
92/100
Longest increasing run length
92.0%Hard
93/100
Longest decreasing run length
87.5%Hard
85/100
Longest equal consecutive run length
66.8%Medium
70/100
Count peaks
68.4%Hard
96/100
Count valleys
48.8%Hard
76/100
Count pairs with prime sum
95.5%Hard
78/100
Count pairs with even product
76.0%Medium
86/100
Most frequent digit
74.8%Hard
60/100
Count distinct digits
47.9%Medium
84/100
Exactly two distinct digits
83.1%Medium
96/100
Dominant digit
44.8%Hard
75/100
Equal sums on odd and even positions
77.3%Medium
81/100
Count occurrences of maximum digit
87.7%Medium
73/100
Count occurrences of minimum digit
65.5%Medium
63/100
All digits have same parity
53.3%Easy
81/100
Maximum digit appears at least twice
92.4%Medium
63/100
Minimum digit appears at least twice
58.6%Medium
95/100
Sum of digits with validation
89.7%Easy
69/100