Home New Trending Search
About Privacy Terms
#
#CodingInterviewQuestion
Posts tagged #CodingInterviewQuestion on Bluesky
Preview
How to Find Multiple Missing Integers in Given Array of Numbers with Duplicates in Java? Hello guys, It's been a long time since I have discussed any coding or algorithm interview questions, so I thought to revisit one of the most popular array-based coding problems of finding missing numbers in a given array of integers. You might have heard or seen this problem before on your programming job interviews and you might already know how to solve this problem. But, there are a lot of different versions of this problem with increasing difficulty levels which interviewers normally use to confuse candidates and further test their ability to adapt to frequent changes, which is key to surviving in the ever-changing software development world. --- Java, Unix, Tibco RV and FIX Protocol Tutorial

#Array #CodingInterviewQuestion #datastructureandalgorithm

0 0 0 0
Preview
How to Remove Duplicates from Array without Using Java Collection API? Example This is a coding question recently asked to one of my readers in a Java Technical interview on investment bank. The question was to remove duplicates from an integer array without using any collection API classes like Set, HashSet, TreeSet or LinkedHashSet, which can make this task trivial. In general, if you need to do this for any project work, I suggest better using the Set interface, particularly LinkedHashSet, because that also keeps the order on which elements are inserted into Set. Why Set? because it doesn't allow duplicates and if you insert duplicate the add() method of Set interface will return false.  --- Java, Unix, Tibco RV and FIX Protocol Tutorial

#Array #CodingInterviewQuestion #corejava

0 0 0 0
Preview
How to check Perfect number in Java? Example Tutorial Hello guys, if you are wondering how to check if a given number is a perfect number or not in Java then you have come to the right place. This is one of the interesting coding problem to solve and learn and improve your coding and programming skill. In face, I learned most of my programming by solving these kind of questions. I started with simple ones like factorial, prime number, palindrome, anagram, string permutations before I started solving tree based problems and Dynamic programming problems. These kind of exercise not only give you a chance to get familiar with the programming language constructs like data type, operators, functions, class etc, but also help to build coding sense, which is nothing but your skill to convert your logic into code.  --- Java, Unix, Tibco RV and FIX Protocol Tutorial

#coding #CodingInterviewQuestion #Codingproblems

0 0 0 0
Preview
How to Rotate Array to Left or Right in Java? Example - LeetCode Solution Hello guys, rotating an array in Java is a common coding problems which are often used to teach beginners coding as well used during interviews to check candidate's programming and data structure skills. This problem may look easy but its not that easy, especially if you are not coding regular. In order to rotate an array of n elements to the right by kth index, you need to rearrange the item in such a way that the array will start from k + 1the element.  For example, with n = 7 and k = 3, the array [1, 2, 3, 4 ,5, 6, 7] is rotated to [5, 6, 7, 1, 2, 3, 4]. See, it looks like you pick the the 4th element and rotated the array in right direction. The problem becomes even more interesting when interviewer ask you to rotate the array by left or right and in place. Could you do it in-place with O(1) extra space? --- Java, Unix, Tibco RV and FIX Protocol Tutorial

#Array #CodingInterviewQuestion #Codingproblems

0 0 0 0
Preview
[Solved] How to check if given point is inside Triangle or not in Java? Example One of the interesting problem from Java Programming interviews is, "write a program to check if given point lies inside a triangle or not?". You will be given co-ordinates of vertices and the point as part of problem and you need to write a function e.g. isInside() which return true if point is within the triangle and false if it is not. For example, in the triangle specified by vertices (11, 31), (21, 1), and (1, 1) the point (11, 16) are inside the triangle and point (30,17) are outside of the triangle. It's a good coding interview question if you have not heard before, just think about how do you prove if the point lies inside the triangle or not? It's not a difficult algorithm and you can think of it by just trial and error.  --- Java, Unix, Tibco RV and FIX Protocol Tutorial

#CodingInterviewQuestion #Codingproblems #Triangle

0 0 0 0
Preview
How to Print a left triangle star pattern in Java? Example Tutorial Pattern based exercises are very common on Interviews as they are tricky for beginners and also offers coding practice. In the past, I have shared article on how to print pyramid pattern of stars in Java and Pyramid pattern of albhabets, and in this article, I will show you how to print left triangle star pattern in Java. There are different ways of printing different patterns, but most of them involves using loops and print methods like print() and println() to print characters like star, alphabets or numbers. If you know how to use loops and when to break from loop then you can easily solve pattern based coding problems.  --- Java, Unix, Tibco RV and FIX Protocol Tutorial

#CodingInterviewQuestion #Codingproblems #patternbasedexercise

0 0 0 0