Posts

Flip Sorting

 Chef has a binary string  S of length N . Chef can perform the following operation on S any number of times (possibly zero): Choose a number X ( 1 ≤ X ≤ N ) that hasn't been chosen in any previous operation and flip any substring of S having length X (i.e. change all 0 s to 1 s and all 1 s to 0 s in any substring of S having length X ). Chef wants to sort S in non-decreasing order using any sequence of operations. Can you help Chef find such a sequence of operations? If there are multiple answers, print any. Input Format The first line contains a single integer T - the number of test cases. Then the test cases follow. The first line of each test case contains an integer N - the length of the binary string S . The second line of each test case contains a binary string S of length N containing 0 s and 1 s only. ...

Finding Shoes

 Chef has  N friends. Chef promised that he would gift a pair of shoes (consisting of one left shoe and one right shoe) to each of his N friends. Chef was about to go to the marketplace to buy shoes, but he suddenly remembers that he already had M left shoes. What is the minimum number of extra shoes that Chef will have to buy to ensure that he is able to gift a pair of shoes to each of his N friends? For example, if N = 2 , M = 4 , then Chef already has 4 left shoes, so he must buy 2 extra right shoes to form 2 pairs of shoes. Therefore Chef must buy at least 2 extra shoes to ensure that he is able to get N = 2 pairs of shoes. Input Format The first line contains a single integer T - the number of test cases. Then the test cases follow. The first line of each test case contains two integers N and M - the number of Chef's friends and the number of left shoes Chef has. ...

Paytm Internship in Operations Associate | Apply Now

Image
  Recently there is a notification for Paytm Internship in Operations Associate where fresher students can apply for the job. If you are from Noida then this is an amazing opportunity for you. You will also get a stipend for your Internship. To know more about the internship stay hooked on the blog post. About Paytm Paytm Paytm – India’s largest mobile e-commerce website is an ultimate destination for prompt Online Recharge, DTH, Data Card & Metro Card Recharge, and Mobile Bill Payment for Airtel, Aircel, BSNL, Idea, MTNL, Vodafone & other operators for all the circles across India. Enjoy our online recharge and bill payment service along with the best bonus packs of internet & roaming within a jiffy. Now you don’t have to look at various websites to find the best entertainment option in your city. You can book movie tickets, event tickets, and travel tickets within minutes on Paytm.com. Paytm login is very easy on the app and Paytm website. Just enter your number and P...

Goldman Sachs Internship And Full Time Job For 2022 2023 batch

Image
  Hiring Our Summer Analyst Internship is an eight to ten week summer internship for undergraduate students. You will be fully immersed in the day-to-day activities of one of our divisions. As a participant, you will: Attend orientation where you’ll learn about our culture, as well as the benefits and responsibilities of being a member of the firm Receive division-specific training designed to help you succeed Have the opportunity to work on real responsibilities alongside fellow interns and our people Date: Summer 2022 Location: Bengaluru Eligibility: Candidates currently pursuing a college or university degree and is usually undertaken during the second penultimate year of study. Our New Analyst Program is a full-time program for final year undergraduate and graduate students. As a new analyst, you will learn about our businesses, develop important relationships, and build career-enhancing skills. As a participant, you will: Learn about the firm and how we do bu...

Python Internship For College Students

Image
Intern Aera Technology is the Cognitive Automation company that makes business agility happen. We deliver the first scalable digital platform that integrates with existing systems to make and execute business decisions in real-time. In the era of digital acceleration, Aera helps enterprises around the world transform how they respond to the ever-changing environment. Are you ready for an internship as a Python Software Engineer, working for a fast-paced and innovative tech company? We are searching for recent graduates who are enthusiastic to learn more about the technology that enables the Self-Driving Enterprise: a cognitive operating system that connects you with your business and autonomously orchestrates your operations. This internship will require problem-solving, creative thinking, and offers a chance for professional evolution based upon feedback. You will have the freedom to develop your own ideas as you work alongside our core engineering product team in solving some of our ...

GTA+ Subscription Service for GTA Online on PS5 and Xbox Series S/X Announced

Image
  GTA+ subscribers can also purchase members-only Shark Cards with extra bonus in-game cash GTA+ — announced Friday — is a new subscription service for Grand Theft Auto Online, available only on PlayStation 5 and Xbox Series S/X. Those who pay the GTA+ monthly fee — $5.99 (roughly Rs. 460) a month — will get in-game currency to spend on the evolving open-world game, along with exclusive properties, vehicle upgrades, member-only discounts, and other benefits. Rockstar Games has suggested that GTA+ members may also gain access to unlock older gameplay updates, or previous time-limited content in the game. In its  announcement  on Friday,  Rockstar Games  said that the new GTA+ membership program will be available starting Tuesday, March 29. Gamers will need to own a copy of  GTA 5  or  GTA Online  to access GTA+. Alongside, Rockstar Games revealed the benefits for the first month of GTA+ membership, that will run from March 29 to April 27. Star...

IDFC FIRST Bank is hiring Hackathon Campus Challenge

Image
  IDFC IDFC FIRST Bank_Campus Challenge OPENS AT: APR 01, 06:00 PM IST CLOSES AT: APR 10, 11:55 PM IST DURATION: 3H ABOUT CHALLENGE This Hackathon will focus on your ability to understand business challenges and come up with innovative solutions. We are looking for Application Engineers to join our Technology Team at IDFC FIRST Bank. In addition to the challenge, we will also throw open exciting job opportunities to the best performing applicants basis their ranking. Register yourself for the challenge to experience a culture that fosters innovation with best in class technology to solve real world business problems. At IDFC FIRST Bank, we offer you a support system of mentors, amazing colleagues and lots of learnings. Exciting prize rewards are mentioned below with more details of the challenge. As part of our vision to build a world class bank, right here in India, we invite you to be a part of our technology team. Eligibility Criteria: Years of experience: Open for Batch of 2020...