A simple coding problem based upon String, but could also be asked with numbers. You need to write a Java program to check if two given strings are anagrams of Each other. Two strings are anagrams if they are written using the same exact letters, ignoring space, punctuation, and capitalization. Each letter should have the same count in both strings. For example, the Army and Mary are an anagram of each other. public class Main { static String one = "seyseysey"; static String two = "yesesyyes"; static char cone[] = one.toCharArray(); static char ctwo[] = two.toCharArray(); static boolean status = false; public static void main(String[] args) { for (int i = 0; i < cone.length; i++) { char check = cone[i]; int number = 0; for (int j = 0; j < cone.length; j++) { if (check == cone[j]) { number++; } } if (stringCheck(check, number) != number) { status = false; break; } else { status = tr...
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
Comments
Post a Comment