Тёмный

Accenture Exact Questions Asked on 1st September | Accenture Actual Questions 

OnlineStudy4u
Подписаться 594 тыс.
Просмотров 23 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@bitansarkar1662
@bitansarkar1662 Год назад
n = int(input()) c = 0 if n < 3: print(n) elif n in range(3, 13): print(n-1) elif n >= 13: for i in range(n): ele = str(i) if '3' in ele: c += 1 print(n-c) It is also helpful I hope
@nishantsah6981
@nishantsah6981 Год назад
Problem 2 int n ; cin >> n; vector arr(n); for(auto & it : arr) cin >> it; int cnt = count(arr.begin(), arr.end() , 5); int rem = n - cnt; cnt /= 9; cnt *= 9; string ans = ""; while(cnt--) ans += '5'; while(rem--) ans += '0'; cout
@gauv9304
@gauv9304 Год назад
In Python it's super easy: def count_not_3(n): count = 0 for i in range(1,n+1): if '3' in str(i): continue count += 1 return count
@prabalchakraborty1378
@prabalchakraborty1378 Год назад
problem 1....simple solution (in java) :- public static int countNumbersWithout3(int n) { int count = 0; for (int num = 1; num 0) { int digit = current % 10; if (digit == 3) { hasThree = true; break; // No need to continue checking if we found a 3 } current /= 10; } if (!hasThree) { count++; } } return count; }
@bhuppidhamii
@bhuppidhamii Год назад
how we will be able to think of this solution in exam!!!! I mean i'm seeing this code for the very first time
@aayushgupta7839
@aayushgupta7839 17 дней назад
int countNumbersWithThree(int num) { int count = 0; for (int i = 0; i < num; i++) { if (to_string(i).find('3') != string::npos) { count++; } } return count; }
@devarakondabharadwaj626
@devarakondabharadwaj626 Год назад
n=input() count=0 for i in range(int(n)) : c=str(i) for j in range(len(c)) : if c[j] == '3' : count = count + 1 break a=int(n) print(a-count) will it be ok for time constraint mam
@twinkle529
@twinkle529 Год назад
for count5 = total5 - (total5%9) will also work
@Teju-z5s
@Teju-z5s Год назад
Has anyone received actual assessment link after completing the screening test? I had given my screening test on September 1st.
@code_with_somesh09
@code_with_somesh09 Год назад
kis college se ho bro???
@bruzo7
@bruzo7 Год назад
Exam will be on physical mode
@HarshKumar-zm1jl
@HarshKumar-zm1jl Год назад
​@@bruzo7college bro kon sa hai
@shruti_k15
@shruti_k15 Год назад
​@maheshnehere4864did u receive any mail for this??
@bavajishaik2579
@bavajishaik2579 Год назад
S I have completed screening test
@nishantsah6981
@nishantsah6981 Год назад
Typical Digit DP problem 1 #include using namespace std; #define int long long int dp[100][100][2]; int solve(int ind, int cnt, int flag, string & s ) { if(ind == s.size()) { return cnt==0; } if(dp[ind][cnt][flag] != -1) return dp[ind][cnt][flag]; int ans = 0 ; if(!flag) { for(int i = 0 ; i < s[ind] - '0'; i++) { ans = ans + (solve(ind + 1, cnt + ( i == 3), 1, s)); } ans = ans + solve(ind + 1, cnt + (s[ind] == '3'), 0, s); } else { for(int i = 0 ; i < 10 ; i++) { ans = ans + solve(ind + 1, cnt + (i == 3), 1, s); } } return dp[ind][cnt][flag] = ans; } int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); memset(dp, -1, sizeof(dp)); int n ; cin >> n; string str =to_string(n); cout
@anshusharma-0498
@anshusharma-0498 Год назад
Bro can you explain your intuition of code ?
@nishantsah6981
@nishantsah6981 Год назад
@@anshusharma-0498 well its standard digit dp problem.... the key idea is to create numbers for each index.... its hard to explain in cmmnts.... its better your try out "Classy Numbers" codeforces problem in order understand the basic idea of digit dp
@anshusharma-0498
@anshusharma-0498 Год назад
@@nishantsah6981 Thanks bro, now I understand it.
@haridarling413
@haridarling413 Год назад
in c++ #include #include using namespace std; int main() { int num; cin>>num; int count =0; int basecase =0; for(int i = 10; i
@Sumi-pp2tn
@Sumi-pp2tn Год назад
Can someone tell me are the ms office and network security sections mandatory for ase role?
@-Bharathchandu
@-Bharathchandu Год назад
mam do you have 2nd september 2023 questions
@Arun_Kumar_x86
@Arun_Kumar_x86 Год назад
What are the languages that can be used ? Can python be used?
@abhis3268
@abhis3268 Год назад
Yes
@dhruvbisht-dr9jf
@dhruvbisht-dr9jf Год назад
Mam is there any Time complexity constraint in accenture coding questions??? Like can we do this question in O(n2) time complexity if i didn't remember this solution??
@shrutigrover5092
@shrutigrover5092 Год назад
If u don't remember the optimised solution then you can always try for the brute force first. Some of the test cases will get passed. But always try to give a solution according to the time constraints given in the problem.
@dhruvbisht-dr9jf
@dhruvbisht-dr9jf Год назад
@@shrutigrover5092 Mam are there any time constraints in Accenture exam? Like mam i have seen various youtubers tell that acccenture coding questions doesn't have any time constraints..
@puspaulmukhopadhyay7794
@puspaulmukhopadhyay7794 Год назад
Straight forward C++ sol ( not using string ) int count(int n) { int ans=0; if(n
@aryanmaheshwari1006
@aryanmaheshwari1006 Год назад
JAVA ALSO HAVE PREDEFINED STRING FUNCTION : public class Main { public static void main(String[] args) { int n = 45; int result = countNot3(n); System.out.println(result); } public static int countNot3(int n) { int count = 0; for (int i = 1; i
@HarshKumar-zm1jl
@HarshKumar-zm1jl Год назад
Nice
@Kashyap12858
@Kashyap12858 2 месяца назад
Worst explanation of code
@Kashyap12858
@Kashyap12858 2 месяца назад
Just explained the solution No explaining why it happens Please explain with intuition
@OnlineStudy4u
@OnlineStudy4u 2 месяца назад
On RU-vid we can’t cover from basics . Thats the reason we are offering courses
@Kashyap12858
@Kashyap12858 2 месяца назад
@@OnlineStudy4u Ohh good idea of selling course
@OnlineStudy4u
@OnlineStudy4u 2 месяца назад
Thank you 🙏
Далее
Always Help the Needy
00:28
Просмотров 12 млн
Viral Video of a Man's Crazy Job Interview
16:02
Просмотров 1,5 млн
Don't Save The Planet | Stand Up Comedy by Nishant Suri
16:08