Jump to content

Palindrome ki recursive function anta..amazingly elegant code!!!!


Recommended Posts

Posted

[quote author=ROBO link=topic=201923.msg2463052#msg2463052 date=1307836299]
libfunctions vadukunatu unnaru ga detailed code please  *7*^ *7*^
[/quote]
em functions..avi inbuilt ee anni..length() undi..substr() kuda undi..  *7*^ *7*^ *7*^
stanford lecture series akkada.. H&T@ H&T@ H&T@

  • Replies 46
  • Created
  • Last Reply

Top Posters In This Topic

  • krldr871

    16

  • robo

    8

  • topulake topu

    8

  • Kakateeyudu

    5

Top Posters In This Topic

Posted

[quote author=John Galt link=topic=201923.msg2463044#msg2463044 date=1307836184]
reverse ki builtin func ledu C++ lo..ee problem ki recursion akkarledemo..kani idi jus code ni entha simplify chestado cheppadaniki anthe..but of course logic koncham complicate avtundi anuko..
any way when ur dealing with complex data structures and problems on those kind of data, [color=green][size=12pt][b]chala sarlu recursion would give u simplest and most elegant solutions..linkedlist reversal for example..recursion tho cheste chaala easy..lekapote juttu peekkovali[/b][/size][/color]
[/quote]
agreed mastaru... pedda pedda companies like MS, google, Amazon ivvani ..DS and alog's ey aduguthay .....vallaki codey rayatam imp kadu ..
code ni ela optimise chestav..enta efficient ga rastava anedey imp...... vallu test chesedi kuda adey ...red trees red/black trees.. Time complexities...  ..ivanni koddiga rod kani ...nerchkute inka tirugu undadu ... ani na feeling ..??

Posted

[quote author=John Galt link=topic=201923.msg2463057#msg2463057 date=1307836384]
em functions..avi inbuilt ee anni..length() undi..substr() kuda undi..  *7*^ *7*^ *7*^
stanford lecture series akkada.. H&T@ H&T@ H&T@
[/quote]inbuilt ante  sCo_^Y sCo_^Y
*7*^ *7*^

Posted

[quote author=topulake topu link=topic=201923.msg2463061#msg2463061 date=1307836500]
agreed mastaru... pedda pedda companies like MS, google, Amazon ivvani ..DS and alog's ey aduguthay .....vallaki codey rayatam imp kadu ..
code ni ela optimise chestav..enta efficient ga rastava anedey imp...... vallu test chesedi kuda adey ...red trees red/black trees.. Time complexities...  ..ivanni koddiga rod kani ...nerchkute inka tirugu undadu ... ani na feeling ..??
[/quote]
avi anni pre requisite laaga..avi vachinantha matrana MS google amazon teeskuntarani kaadu  CITI_c$y CITI_c$y CITI_c$y
infact google aithe mariii ghoram..msft koncham easy compared to google..7 8 rounds of grilling untadi..6 7 mandi interview chestaaru..and most of the times, okkadu no anna kani dobbeyamantaaru..so marii too much le..

Posted

[quote author=ROBO link=topic=201923.msg2463063#msg2463063 date=1307836550]
inbuilt ante  sCo_^Y sCo_^Y
*7*^ *7*^
[/quote]
[url=http://www.cplusplus.com/reference/string/string/]http://www.cplusplus.com/reference/string/string/[/url]
standard lib tho vachevi baa..

Posted

[quote author=John Galt link=topic=201923.msg2463072#msg2463072 date=1307836681]
[url=http://www.cplusplus.com/reference/string/string/]http://www.cplusplus.com/reference/string/string/[/url]
standard lib tho vachevi baa..
[/quote] sSa_j@il sSa_j@il sSa_j@il indakada ade adiganu kada lib function vadaru aa lib function code kuda veyachu kada ani

Posted

[quote author=John Galt link=topic=201923.msg2463069#msg2463069 date=1307836650]
avi anni pre requisite laaga..[b]avi vachinantha matrana MS google amazon teeskuntarani kaadu[/b]  CITI_c$y CITI_c$y CITI_c$y
infact google aithe mariii ghoram..msft koncham easy compared to google..7 8 rounds of grilling untadi..6 7 mandi interview chestaaru..and most of the times, okkadu no anna kani dobbeyamantaaru..so marii too much le..
[/quote]
@3$% @3$% @3$% .... ala ante ala kadu baa...nenu gen ga cheppanu.... nenu chepindhi just starting point ey ga... nenu dobbincha MS interview ..vadu denemma ..entento adigadu ..na jeevitma lo avemi vinalu kuda nenu ...ala untadi maddalodi....
[quote author=John Galt link=topic=201923.msg2463069#msg2463069 date=1307836650]
okkadu no anna kani dobbeyamantaaru..so marii too much le..
[/quote]
@gr33d @gr33d

Posted

[quote author=ROBO link=topic=201923.msg2463080#msg2463080 date=1307836809]
sSa_j@il sSa_j@il sSa_j@il indakada ade adiganu kada lib function vadaru aa lib function code kuda veyachu kada ani
[/quote]
library funcion's ki codey untay bhayyaa.. kani avi vesi labham enti ani..??  sCo_^Y sCo_^Y
eg: linux lo anuko....  man strlen ...ani kottavanuko..dani puttu poorvatralanni vastay ... nuvvu adigey aa lib funciton code to saha..

Posted

[quote author=ROBO link=topic=201923.msg2463080#msg2463080 date=1307836809]
sSa_j@il sSa_j@il sSa_j@il indakada ade adiganu kada lib function vadaru aa lib function code kuda veyachu kada ani
[/quote]
adi standard lib baa..C++ tho ne vastadi..
length okate ga vaadindi..and aa substr..
length ki easy ee..null terminated string aite, iterate till you encounter NULL, count++ for every non null character..
final ga length return cheyi after ur done with the counting..
substr kuda simple ee..substr(s[1],s[10]) ante s[1] nunchi s[10] varaku oka kotha string ni form cheyali..so 1 nunchi 10 ante length 11 undali if it is null terminated..
and copy chestu poo kotha string lo ki character by character..anthe

Posted

[quote author=topulake topu link=topic=201923.msg2463084#msg2463084 date=1307836859]
@3$% @3$% @3$% .... ala ante ala kadu baa...nenu gen ga cheppanu.... nenu chepindhi just starting point ey ga... nenu dobbincha MS interview ..vadu denemma ..entento adigadu ..na jeevitma lo avemi vinalu kuda nenu ...ala untadi maddalodi....  @gr33d @gr33d
[/quote]
avunaa..enni rounds varaku vellav baa..koncham detailed ga cheppu ne experience  H&*() H&*() H&*()

Posted

[quote author=topulake topu link=topic=201923.msg2463100#msg2463100 date=1307837054]
library funcion's ki codey untay bhayyaa.. kani avi vesi labham enti ani..??  sCo_^Y sCo_^Y
eg: linux lo anuko....  man strlen ...ani kottavanuko..dani puttu poorvatralanni vastay ... nuvvu adigey aa lib funciton code to saha..
[/quote]kadu mama lib function is a code can say cooked food which can be served wen needed availabe any time

linux lo
date command ki kuda shell script untundhi ala ge anni commands ki untundhi
manam kotha ga kavalsina ccomand ni create chesukovachu beauty of linux ade

Posted

[quote author=John Galt link=topic=201923.msg2463116#msg2463116 date=1307837213]
avunaa..enni rounds varaku vellav baa..koncham detailed ga cheppu ne experience  H&*() H&*() H&*()
[/quote]
Round(S) kadu ba ....intern ki apply chesa .....edo..assesment anadu ..techinal annadu ..nacheta oka test rapinchadu ..
taravata okadu calll chesi ..adigo ala adigadu ..maddalodi.. anni teliste nenu vadiki enduku apply chesta ...neney oka company pettevadini..
@3$% @3$%

Posted

[quote author=John Galt link=topic=201923.msg2463111#msg2463111 date=1307837156]
adi standard lib baa..C++ tho ne vastadi..
length okate ga vaadindi..and aa substr..
length ki easy ee..null terminated string aite, iterate till you encounter NULL, count++ for every non null character..
final ga length return cheyi after ur done with the counting..
substr kuda simple ee..substr(s[1],s[10]) ante s[1] nunchi s[10] varaku oka kotha string ni form cheyali..so 1 nunchi 10 ante length 11 undali if it is null terminated..
and copy chestu poo kotha string lo ki character by character..anthe
[/quote] @gr33d @gr33d naku syntax teledu but ide kada actual program  sCo_^Y

Posted

[quote author=ROBO link=topic=201923.msg2463124#msg2463124 date=1307837384]
kadu mama lib function is a code can say cooked food which can be served wen needed availabe any time

linux lo
date command ki kuda shell script untundhi ala ge anni commands ki untundhi
manam kotha ga kavalsina ccomand ni create chesukovachu beauty of linux ade
[/quote]
@gr33d @gr33d ....kani nuvu em point make chestunavo ardam kaled baa..

Posted

[quote author=ROBO link=topic=201923.msg2463130#msg2463130 date=1307837460]
@gr33d @gr33d naku syntax teledu but ide kada actual program  sCo_^Y
[/quote]
@gr33d @gr33d @gr33d standard libraries unnappud vaadeskovali..because they are standard..vaatini kuda vaddu ani nedi nuvve raaskunte time and energy waste..code reuse cheskovali antaru..of course adi vere context lo anuko..but ne question ki kuda idi varthistundi..why reinvent the wheel?  &D_@@ &D_@@ &D_@@

×
×
  • Create New...