In the coding test I was asked to implement Wrap Text algorithm. Given a long string and a line width, modify the string to put new line so that a line has at most line width amount of character and no line break is given in the middle of a word. I was not allowed to use split function.
Software Developer Engineer Interview Questions
466,934 software developer engineer interview questions shared by candidates
monkey climbs 3m and slides 2m daily. How many days it would take to reach 30m
if (5<6<2) { console.log(true); }
Remove duplicated char within a String
What are the three main components of object orientated programming
Given a 2d array of zeros, there may be a rectangle (block) of 1s. Return the top left coordinates of the rectangle. ie. [[0,0,1],[0,0,1],[0,0,1]] returns (2,2) The second question was how to solve it if you had to find many rectangles.
Q: How can you tell if a Linked List is a Palindrome?
Write a function that finds all the different ways you can split up a word into a concatenation of two other words.
Why did you decide to take X club or join X org?
How would you translate input string into sequence of movements through on screen keyboard? What if you can loop through rows and columns?
Viewing 1321 - 1330 interview questions