Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 59228

A competition to solve a particular problem through the usage and manipulation of strings.

0
votes
Ruby, 28 bytes ->a,w{a.map{|e|w.slice!0,e}} In case arguments are an array of positive integers and one string. …
answered Sep 23 '16 by cia_rana
0
votes
Go, 90 bytes package main;import."fmt";func main(){s:="";Scan(&s);for i:=0;i<=len(s);i++{Print(s[:i])}}
answered Sep 7 '16 by cia_rana
1
vote
Ruby, 65 bytes ->a,b{a,b=b,a if a.size>b.size;a.chars.map{|e|b.sub!e,""};a+?_+b} ungolfed ->a, b{ a, b = b, a if a.size > b.size a.chars.map { |e| b.sub! e, "" } a + ?_ + b } 61 byte …
answered Sep 23 '16 by cia_rana
1
vote
Ruby, 56 bytes f=->n,k{n>1&&k>1?[f[n,k-1],f[n-1,k]]:[*1..n].reverse*""} Usage When you display any solutions, you should use "Kernel#puts". Example: puts f[9,3]
answered Sep 4 '16 by cia_rana
5
votes
Ruby, 34 bytes ->x{("-~"*x.abs+?0)[2[0<=>x]..-1]}
answered Sep 7 '16 by cia_rana
0
votes
Go, 93 bytes func(s string)int{n:=0;for _,c:=range s{for _,d:=range"aeiouAEIOU"{if c==d{n++}}};return n%2} …
answered Sep 21 '16 by cia_rana
3
votes
Ruby, 73 bytes ->x{eval x.chars.each_cons(2).map{|a,b|13-(13-(a.ord-b.ord).abs).abs}*?+}
answered Sep 17 '16 by cia_rana
0
votes
Ruby, 102 bytes m=-1+n=gets.to_i puts' \ '*n,' ___/o>'*m+' ___/->',(?-+a='(___)" ')*m+?,+a," '' '' "*m+" ``"*2
answered Sep 13 '16 by cia_rana
0
votes
Ruby, 64 bytes ->{gets.split(?[)[0]+"[]={"+$<.map{|s|s.scan /\ -?\d+/}*?,+"};"}
answered Sep 21 '16 by cia_rana