1. You have two strings. A test string and a glob Test string can have a & b, any number of times, any location. Glob can have a, b, ? and *, any number of times, any location. E.g. test= {a,b,a,a,a,a,b,b,b,b,b,b} glob = {a,?, *, b} Now, ? means ANY character, single occurrence. So it's either a or b, one time * means ANY OR NO character, any number of occurrences. E.g. the above glob and test actually match. Problem is: write an algorithm to match glob with test. You MAY NOT use regular expressions :D 2. The input is any string of any length of any characters. Write a program to generate ALL unique permutations of those characters. Unique. You may not store in an array or list, due to memory constraints. e.g. for input of abc your program should give 6 permutations but for aba your program should give 3. Hint: make the list alphabetical.
Systems Engineer Interview Questions
32,686 systems engineer interview questions shared by candidates
How to write a tail command that will print the last 10 lines of a file.
How would you remove a file from the GNU/Linux command line that started with '-'
If we have a string : "abc ef 12 g", write a function that takes the pointer to the string reorganizes the string to be: "g 12 ef abc". Note that there are 3 spaces after abc, 2 spaces after ef, and 1 space after 12 in the original string, but the spaces are reversed. So in essence, write a function to reverse a string and then put the words between the spaces back in order. And the string length can be known or not.
write a function to check if an unsigned integer is a power of 2. if it is a power of 2, return the power. otherwise return 0.
convolution of a positive signal with itself many number of times will result in what kind of waveform?
How to swap 2 variables without using a third variable. And the team leader asked to write a code snippet for assigning 5 colors to the countries on the world map so that no adjacent country has same color.
Why is your GPA is so low?
What are your strengths and weaknesses?
What is DNS,DHCP......Interview was average and I knew all the answers so thats why it didn't take much time to clear rounds.
Viewing 71 - 80 interview questions