anagram Questions
14
Solved
I’m going through a permutation/anagram problem and wanted input on the most efficient means of checking.
Now, I’m doing this in Java land, and as such there is a library for EVERYTHING inclu...
38
Solved
I am supposed to write a program in JavaScript to find all the anagrams within a series of words provided. e.g.:
monk, konm, nkom, bbc, cbb, dell, ledl, llde
The output should be categorised into r...
Kiddy asked 26/5, 2009 at 7:49
13
Solved
I am attempting to build an anagram checker for swift. This is my code. In case you don't know an anagram checker checks if two strings have the same characters in them but, order does not matter.
...
38
I would like to make anagram algorithm but
This code doesn't work. Where is my fault ?
For example des and sed is anagram but output is not anagram
Meanwhile I have to use string method. not array...
Tyrothricin asked 3/12, 2012 at 21:40
27
Solved
I am trying to write a program that accepts two strings from the user:
s1 = input("Please enter a word:")
s2 = input("Please enter another word:")
How can I output True if the ...
23
Solved
Suppose I have a list of strings like ["car", "tree", "boy", "girl", "arc"] etc. I want to find groups of anagrams in that list - in this case, (ca...
7
Solved
input: ['abc', 'cab', 'cafe', 'face', 'goo']
output: [['abc', 'cab'], ['cafe', 'face'], ['goo']]
The problem is simple: it groups by anagrams. The order doesn't matter.
Of course, I can do this ...
Heptateuch asked 18/11, 2011 at 11:16
37
Solved
I have a program that shows you whether two words are anagrams of one another. There are a few examples that will not work properly and I would appreciate any help, although if it were not advanced...
3
Solved
I came across THIS post which tried very hard to explain the recursive solution to print all string.
public class Main {
private static void permutation(String prefix, String str) {
int n = str.l...
Aphaeresis asked 9/1, 2015 at 8:14
2
Solved
Java 8 is about to be released... While learning about Streams, I got into a scenario about grouping anagrams using one of the new ways. The problem I'm facing is that I can't find a way to group S...
Ulibarri asked 24/2, 2014 at 4:1
2
Solved
How do you compare a palindromic word to one of the newly formed words of an anagram?
And how do you grab one of the newly formed words for it to be compared to the input word?
This is my code:
pub...
Docket asked 4/11, 2020 at 14:54
13
Solved
Two words are anagrams if one of them has exactly same characters as that of the another word.
Example : Anagram & Nagaram are anagrams (case-insensitive).
Now there are many questions simila...
Gangrene asked 18/9, 2012 at 12:46
2
Solved
I have a pool of characters and I want to match all the words which are anagrams of those chars or of a subset of those chars using a regular expression.
Example: given the string "ACNE" the regex...
5
Solved
I recently was asked to design an algorithm that checks if two strings are anagrams of one another. My goal was to minimize space and time complexity, so I came up with this algorithm:
Create an ...
Disembroil asked 29/3, 2011 at 8:55
14
Solved
Given a set of words, we need to find the anagram words and display each category alone using the best algorithm.
input:
man car kile arc none like
output:
man
car arc
kile like
none
The bes...
Scheck asked 28/12, 2008 at 9:11
10
Solved
How would you list words that are anagrams of each other?
I was asked this question when I applied for my current job.
orchestra can be rearranged into carthorse with all original letters used ex...
Elastance asked 6/2, 2009 at 20:52
6
Algorithm to remove a character from a word such that the reduced word is still a word in dictionary
Here is the scenario, Given a word remove a single character from a word in every step such that the reduced word is still a word in dictionary. Continue till no characters are left.
Here is the c...
3
Solved
We have an array of words here:
words = ['demo', 'none', 'tied', 'evil', 'dome', 'mode', 'live',
'fowl', 'veil', 'wolf', 'diet', 'vile', 'edit', 'tide',
'flow', 'neon']
My teacher wrote a prog...
1
Solved
I was trying to make a method that returns true if given "Strings" are anagrams. unfortunately i cant even test it and i don know what is wrong. The markers at left says:
Multiple markers at thi...
1
Solved
I am trying to write an anagram checker in Elixir. It takes 2 words, the first one is a reference, the second is to be tested as a possible anagram of the first.
I am trying to write it with recur...
Sclerous asked 2/7, 2015 at 12:42
5
Solved
I am making a mobile app to find anagrams and partial matches. Mobile is important because there is not a whole lot of computational power, and efficiency is key.
The algorithm takes any number of...
Emelun asked 2/7, 2011 at 4:2
7
Solved
I have written a function that determines whether two words are anagrams. Word
A is an anagram of word B if you can build word B out of A just by rearranging
the letters, e.g.:
lead is anagram of ...
Wiliness asked 8/8, 2013 at 10:41
4
Solved
Source : Microsoft Interview Question
We are given a File containing words.We need to determine all the Anagrams Present in it .
Can someone suggest most optimal algorithm to do this.
Only way i...
7
Solved
I am wanting to write a anagram type solver in Ruby but it will work against a list of words, like so.
List of words is:
the
these
one
owner
I would allow the user to input some letters, ...
1
Solved
Given an input string up to 25 characters long consisting of characters A-Z, output its index in the alphabetically sorted list of all possible anagrams of the input string. Input string is n...
Palla asked 5/9, 2013 at 19:32
1 Next >
© 2022 - 2024 — McMap. All rights reserved.