employer cover photo
employer logo

Question d’entretien chez Kony

Given a string, konylabsinterview write a program to return bool if a given pattern matches.pattern example - kon*lab*terview*

Réponses aux questions d'entretien

Utilisateur anonyme

10 avr. 2015

public class Test{ public static void main(String args[]){ String Str = new String("konylabsinterview"); System.out.print("Return Value :" ); System.out.println(Str.matches("kon(.*)lab(.*)terview(.*)")); } }

1

Utilisateur anonyme

18 sept. 2014

Use KMP

Utilisateur anonyme

23 déc. 2014

Hi, Please see if you can provide the details of the question posed in the context of binary search tree. Thanks.

Utilisateur anonyme

23 déc. 2014

Hi, Please see if you can provide the details of the question posed in the context of binary search tree. Thanks.

Utilisateur anonyme

10 avr. 2015

//IsSubstring("Interview Question", "Que") returns true public static bool IsSubstring(string s, string sub) { char[] str = s.toCharArray(); char[] substr = sub.ToCharArray(); int pos,subpos=0; bool check = false; for (pos=0;pos<=str.length();pos++) // for repeating the process of matching the substring across the entire string. { for(subpos=0;subpos