File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

algorithm (k letters combination in a word)

 
sk said
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

i need help on algorithm to combine k letters from a word.
for example, i have this word: 'ABCD' . then i want to combine 3 letters from that word. so it comes to these combination:
1- ABC
2- ABD
3- ACD
4- BCD

how is the algorithm in java script so that i can get any letter combination from any word insert by users?
real need it urgent....please and thanks in advance
 
John Jai
Rancher
Posts: 1776
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sk said wrote:how is the algorithm in java script so that i can get any letter combination from any word insert by users?
real need it urgent....please and thanks in advance

Please CarefullyChooseOneForum and be patient
 
Winston Gutkowski
Bartender
Pie
Posts: 9484
50
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sk said wrote:i need help on algorithm to combine k letters from a word.
for example, i have this word: 'ABCD' . then i want to combine 3 letters from that word. so it comes to these combination:

We need a bit more information than that. What do you want it to do if the word is 'ABBB' or 'ABAB' or 'ABCA'?

Winston
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how is the algorithm in java script


Also you posted this question in a Java forum. Java and java script are not the same.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic