What is the output? int n = 1; puts(((char*)&n)[0]==1?"Y":"N");
Software Engineer Interview Questions
419,567 software engineer interview questions shared by candidates
CODING (weight: 50%) The string "PAYPAL IS HIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: PAHNAPLSIIGYIR Write the code that will take a string and make this conversion given a number of rows: String convert(String text, int nRows); convert("paypalishiring", 3) should return "pahnaplsiigyir"
Given a string "AABCCC" make a new string "2A1B3C"
Print a N x M matrix in diagonal from the upper left to lower right. However, with the following caveat. It's easy to just show the input and expect output. matrix: a b c d e f g h i j k output: aej bfk cg di h
Given many points, find k points that are closest to the origin.
Coding questions of good standard !
Give an array of Integer which contain duplicate number from 1-100, how to count how many distinct number you have?
Write a code to reverse binary bit pattern for an integer without using any string or utility methods?
How would you implement a top 3 word count in a text editor application?
Find nth last number in a singly linked list.
Viewing 331 - 340 interview questions