Posts

Enjoy Number Technique with Tom and Jerry Fight Game

Image
Query: Let's play a game with numbers connecting it with our childhood memories, As we have seen Tom & Jerry fight in cartoons now let's have number game based on Tom and Jerry fight. Tom is working as top architect of the company and he has given work on NumberofTask no.  sites, seeing the progress of Tom, Jerry become jealous from Tom and he decided to disrupt the image of Tom. So he started to destroy the C no.  buildings in nights that D no. of buildings Tom created in a day. In the end Tom gets successful in completing the project on all sites by constructing N no. of buildings per (N) sites. Now you have to calculate the minimum time that has been taken by Tom to complete the project? Constraints: 1<=  NumberofTask   <= 100 1<= N <= 10^5 1<= C <= D 1<=D <= N                                                                      Test Cases Example Input will be given in below format: First Line: Number of Tasks assign to Tom Second Line: D(Tom C

Enjoy Cypher Techniques with String

Image
Query: Design code for Cypher string that returns string with kth character present in the wheel in anti clock wise direction consist of capital letter alphabets only. Constraints 0< k & k<10^5                                                                                 Test Case Examples First try it yourself than if you find any challenge take the help from solution I have try to write a code that can help user to understand the best possible use of Collection, LINQ and String Builder class. There could be many technique to write the code for this problem, I have tried my technique you can try yours but keep in mind the complexity should be always the key before writing the solution. Solution in C# using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Cypher { class Program { public static void Main(string[] args) { string encrypted = Console.ReadLine(); int k = Convert.ToInt