Sir, I think this simple code will pass all the test cases s=input() sorted_string = ''.join(sorted(s)) print(sorted_string) Let me know if it fails any test case! Can we write this in the test?
In a recent test which I gave, I was asked 5 coding questions similar to this! All the 5 should be completed within 30 minutes! In that case, my solution can be written to save time to attempt other questions! Otherwise, we can't attempt 5 questions!
Sir ,Can you do vedios on remaining questions asked in prev year?
your approach fails for testcase "SHEHAP" according to ur explanation it's coming "EAHHSP"....
edit: i even test the code now, it gives wrong output.
bro is there any chance of selection if we are able to solve only 7/10 testcases
Stack can be used here
Can you please solve the remaining programming questions as well?
Sure
@@DeveloperDevendrathank you!
Sir, I think this simple code will pass all the test cases
s=input()
sorted_string = ''.join(sorted(s))
print(sorted_string)
Let me know if it fails any test case! Can we write this in the test?
Please check the question once only after doing move1 and move2 we can attach
@@DeveloperDevendra However, the result will be same!
In a recent test which I gave, I was asked 5 coding questions similar to this! All the 5 should be completed within 30 minutes! In that case, my solution can be written to save time to attempt other questions! Otherwise, we can't attempt 5 questions!
check for case s="bdda" , your code will fail as correct output is "addb"
@@nitianslife8967 output will be "badd"
Bro mi personal contact evvara
You can find my instagram in about me section