How to fix the Release Version 5 Not Supported error in IntelliJ
What do you do when you create a new Maven Java project, and when you run it, you get the following error:
Error:java: error: release version 5 not …
In-depth guides, insights, and best practices for modern software engineering
What do you do when you create a new Maven Java project, and when you run it, you get the following error:
Error:java: error: release version 5 not …
I noticed an interesting thing with a certain visitor after posting a blog post to Facebook.
The IP address that the Facebook crawler uses to visit …
Read Article →Given a 32-bit signed integer, reverse digits of an integer.
Example 1:
Example 2:
Example 3:
Note:
Assume we are dealing with an …
Write a function that reverses a string. The input string is given as an array of characters char[].
Do not allocate extra space for …
Read Article →Given an array of integers, find if the array contains any duplicates.
Your function should return true if any value appears at least …
Read Article →Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
Find all the …
Read Article →Students are asked to stand in non-decreasing order of heights for an annual photo.
Return the minimum number of students that must move …
Read Article →Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted …
Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of …
Say you have an array of primitive integers and you want to remove all duplicates.
You can find out how many non-duplicate integers are in the array …
Read Article →Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last …
Given an array A of integers, return true if and only if it is a valid mountain array.
Recall that A is a mountain array if …
Read Article →