Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

ADIGIT WA cant find error

$
0
0

I tried to solve this problem(https://www.codechef.com/problems/ADIGIT) with same logic as given in Editorial still getting WA plz explain flaw in my code

Description of code

1)Take an structure array

2)find the frequency of each digit occurring before index i

3)arr[i].greater[j] meaning frequency of digit j before the element i in the array

code link https://ideone.com/Q5Ax7b

please help


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>