• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

algorithm (k letters combination in a word)

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic