Epic Systems Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

is the question incomplete ?

- anon July 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Yes, it's incomplete like Epic's recruitment process.

- Anonymous January 10, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

/*
barring the first 3 vowels in a string , replace all vowels a e i o u, with '_' ,. At the same time not more than 4 vowels from the last shud be changed.
*/
#include<iostream>
#include<string>
using namespace std;

string replace_vowel(string s)
{
	if (s.length()<=3) return s;
	else
	{
		int count_front=0,count_rear=0;
		int index=-1;
		for (int i=0;i<3;i++)
		{
			index=s.find_first_of("aeiou",index+1);
			if (index!=string::npos)
				count_front++;
		}
		if (count_front<3) return s;
		else
		{
			int rear_index=s.length();
			while (count_rear<4)
			{
				rear_index=s.find_last_of("aeiou",rear_index-1);
				if (rear_index!=string::npos && rear_index>index)
					s[rear_index]='_';
					count_rear++;
			}
			return s;
		}
	}
}

int main ()
{
	cout << "Enter the string\n";
	string str;
	getline(cin,str);
	cout<<replace_vowel(str)<<endl;
}

- priyanshu October 27, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

package switchvow;

public class vow {
	public static void main(String[] args) {
		String str = "an apple a morning keeps me yawning"; 
		StringBuilder sb = new StringBuilder();
		char[] s=str.toCharArray();
		for(char c:s){
			System.out.print(c);}
		System.out.println("");
		int count=0;
		for(char c:s){	
			if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u'){
				count++;
			}
			
		}
		int len=0;
		if(count<=7){
			len=count-3;
		}
		else{
			len=4;
		}
		for(int i=s.length-1;i>0;i--){
		  if(len>0){
			if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'){
			
				sb.append("^"+s[i]);
				s[i]=(char) (s[i]-'a'+'A');	
				len--;
			} else {
				sb.append(s[i]);
			}
		  }else{
			  sb.append(s[i]);
		  }
		}	
			sb.append(s[0]);
			System.out.println(sb.reverse().toString());
		for(char c:s){
		System.out.print(c);}
	}
}

- Anonymous March 05, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More