Advertisement
saurav_kalsoor

TESTCASES - Reduce String

May 17th, 2022
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Author : Saurav Kalsoor
  2. #Testcases for Reduce String
  3.  
  4. ___________________________________________________________________________________________________________________________
  5. // Testcase : 1
  6.  
  7. //Input :
  8. 5231532587
  9.  
  10. //Output :
  11. 23
  12. ___________________________________________________________________________________________________________________________
  13. // Testcase : 2
  14.  
  15. //Input :
  16. 625381012572215
  17.  
  18. //Output :
  19. 86
  20. ___________________________________________________________________________________________________________________________
  21. // Testcase : 3
  22.  
  23. //Input :
  24. 765907654475912900263450169493
  25.  
  26. //Output :
  27. 75
  28. ___________________________________________________________________________________________________________________________
  29. // Testcase : 4
  30.  
  31. //Input :
  32. 2432540056082965680587136209366180321651
  33.  
  34.  
  35. //Output :
  36. 95
  37. __________________________________________________________________________________________________________________________
  38. // Testcase : 5
  39.  
  40. //Input :
  41. 819802244060684824221759982896870213661902989221214568568484109819151226350
  42.  
  43. //Output :
  44. 10
  45. _______________________________________________________________________________________________________________________
  46. // Testcase : 6
  47.  
  48. //Input :
  49. 9040063483414830162297530267282544888785005493862156937404792752929145849646972096003115944572080062
  50.  
  51.  
  52. //Output :
  53. 81
  54. ___________________________________________________________________________________________________________________________
  55. // Testcase : 7
  56.  
  57. //Input :
  58. 602103033133519637413987661763903113942074050053762785666644101237895740451741507414005307613815577436680517735472458900750025229431166890778507129097
  59.  
  60.  
  61. //Output :
  62. 20
  63. ___________________________________________________________________________________________________________________________
  64. // Testcase : 8
  65.  
  66. //Input :
  67. 76437749887844384295790831920298662517716514215813032742730519634132272326324945976907202484594994310252400074240971867611729292588971794478537510192156680796356089846397159115456535133321420523673575
  68.  
  69.  
  70. //Output :
  71. 40
  72. ___________________________________________________________________________________________________________________________
  73. // Testcase : 9
  74.  
  75. //Input :
  76. 249686333535340665341229554433850226118370490725097867501392804663490841925476685275833359186294343475527630802482455973254158997930998796391681942205459095114460062332781826453394312308143001277477165324249277913032843053352107276192744523989040266830374049649102999656563757213853145766716703845383
  77.  
  78.  
  79. //Output :
  80. 82
  81.  
  82. ___________________________________________________________________________________________________________________________
  83. // Testcase : 10
  84.  
  85. //Input :
  86. 12116573766958576503994911860863177685689268582697112022884516859613947909468571107375589855796170746163796737352978073976235750160208844632156002909643189411613373585857724720817860158331849310494948117951083082418800828537597681793817762880366703164958702862142214335005031761965827713640741452184370124403907665123297364295630511294988919727966776928120064811029321672814209188430920196907466902013102513188176147361901951824849745374231976323211506507056578963142364735762948804810335561128032884
  87.  
  88.  
  89. //Output :
  90. 51
  91. ___________________________________________________________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement