Sometimes we remember people not by their name but by what they said. Today, i have created application using python which can search videos and audios on the basis of speech / dialogues said in them. Suppose you know famous dialogue of movie but can't remember the name of that movie. In this case you can directly search that movie by any dialogue which you remember from it. Consider the example shown in following image - I searched "thanos did exactly what he said" and it listed the trailer of avengers endgame where this dialogue is. For now this application is able to find local multimedia files only. I am working on how to make it search globally
One of the most common string interview questions: Find the first non-repeated (unique) character in a given string. for Example, if given String is "Morning" then it should print "M". This question demonstrates the efficient use of the hash table data structure. public class Main { static String str = "MMorning"; static char c[] = str.toCharArray(); public static void main(String[] args) { for (int i = 0; i < c.length; i++) { char check = c[i]; int number = 0; for (int j = 0; j < c.length; j++) { if (check == c[j]) { number++; } if (number > 1) { break; } } if (number == 1) { System.out.println(check); break; } } } }
Comments
Post a Comment