From 517a971008055b86a1c88202c11c0cbf9c154657 Mon Sep 17 00:00:00 2001 From: chayan das <110921638+Chayandas07@users.noreply.github.com> Date: Mon, 19 Aug 2024 22:29:40 +0530 Subject: [PATCH] Create 650. 2 Keys Keyboard --- 650. 2 Keys Keyboard | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 650. 2 Keys Keyboard diff --git a/650. 2 Keys Keyboard b/650. 2 Keys Keyboard new file mode 100644 index 0000000..c96791e --- /dev/null +++ b/650. 2 Keys Keyboard @@ -0,0 +1,21 @@ +class Solution { +public: + int minSteps(int n) { + int curr = 1; + int copy = 0; + int steps = 0; + + while(curr