LogiQuest

Coding Practice

Solve problems in the MyLoginn IDE — Python, JavaScript and SQL — with instant results on sample and hidden test cases. Earn XP for every first solve.

Solved

0 / 552

Easy

0 / 274

Medium

0 / 234

Hard

0 / 44

Log in to save your solutions, track solved problems and earn XP.

Practice Skills

Problem Set

StatusTitleDifficulty
1. Two SumEasy
2. Maximum Subarray SumMedium
3. Binary SearchEasy
4. Climbing StairsEasy
5. Coin ChangeMedium
6. Longest Increasing SubsequenceMedium
7. Activity SelectionMedium
8. Longest Common SubsequenceMedium
9. Edit DistanceHard
10. 0/1 KnapsackHard
11. N-Queens CountHard
12. Valid ParenthesesEasy
13. Next Greater ElementMedium
14. Sliding Window MaximumHard
15. Element FrequencyEasy
16. Shortest Path in a GraphMedium
17. Number of IslandsMedium
18. Merge IntervalsMedium
19. Top K Frequent ElementsMedium
20. Sum of DigitsEasy
21. GCD and LCMEasy
22. Is It Prime?Easy
23. Count PrimesMedium
24. Factorial Trailing ZerosEasy
25. Pascal's TriangleEasy
26. nCr Modulo 1e9+7Medium
27. Palindrome CheckEasy
28. Valid AnagramEasy
29. Reverse WordsEasy
30. String CompressionEasy
31. Caesar CipherEasy
32. First Unique CharacterEasy
33. Longest Palindromic SubstringMedium
34. Count Vowels and ConsonantsEasy
35. FizzBuzzEasy
36. Best Time to Buy and Sell StockEasy
37. Majority ElementEasy
38. Move ZeroesEasy
39. Rotate ArrayEasy
40. Trapping Rain WaterHard
41. Product of Array Except SelfMedium
42. Missing NumberEasy
43. Word FrequencyEasy
44. Set OperationsEasy
45. Top StudentEasy
46. snake_case to camelCaseEasy
47. Chunk an ArrayEasy
48. Sum of ArrayEasy
49. Minimum and MaximumEasy
50. Reverse an ArrayEasy
51. Second Largest Distinct ElementEasy
52. Count Even and OddEasy
53. Prefix SumsEasy
54. Range Sum QueriesMedium
55. Left RotationEasy
56. Remove Duplicates from Sorted ArrayEasy
57. Merge Two Sorted ArraysEasy
58. Negatives Before PositivesEasy
59. Leaders in an ArrayEasy
60. Equilibrium IndexMedium
61. Max Consecutive OnesEasy
62. Missing and RepeatingMedium
63. Best Subarray with BoundsMedium
64. Product ModuloEasy
65. Pair with Given DifferenceMedium
66. Count Pairs with SumMedium
67. Subarrays with Sum KMedium
68. Longest Subarray with Sum KMedium
69. Maximum Sum WindowEasy
70. Shortest Subarray with Sum ≥ SMedium
71. Count InversionsHard
72. Elements More Than n/3 TimesMedium
73. Stock SpanMedium
74. Sort 0s, 1s and 2sEasy
75. Next PermutationMedium
76. Alternate Positive and NegativeMedium
77. Find a Peak ElementMedium
78. Intersection of Two ArraysEasy
79. Union of Two ArraysEasy
80. Sort by FrequencyMedium
81. First Repeating ElementEasy
82. Zig-Zag ArrangementMedium
83. Minimum PlatformsMedium
84. Chocolate DistributionEasy
85. Maximum Product of TwoEasy
86. Distinct Elements in Every WindowMedium
87. Reverse a StringEasy
88. Count Letters, Digits and SpacesEasy
89. Toggle CaseEasy
90. Count WordsEasy
91. Capitalise Each WordEasy
92. Remove VowelsEasy
93. Character FrequencyEasy
94. Isogram CheckEasy
95. Pangram CheckEasy
96. Longest WordEasy
97. Is It a Rotation?Easy
98. Run-Length DecodingEasy
99. First Non-Repeating Character IndexEasy
100. Longest Common PrefixEasy
101. Valid Palindrome (Letters and Digits)Easy
102. Longest Substring Without RepeatsMedium
103. Count Anagram GroupsMedium
104. Split into Balanced StringsEasy
105. String to IntegerMedium
106. Roman to IntegerEasy
107. Integer to RomanMedium
108. Count Palindromic SubstringsMedium
109. Most Frequent CharacterEasy
110. Is SubsequenceEasy
111. Reverse Only the VowelsEasy
112. Word PatternEasy
113. Isomorphic StringsEasy
114. Make AnagramsEasy
115. Caesar DecoderEasy
116. Longest Run After K ChangesMedium
117. Minimum Window Containing AllHard
118. Decode WaysMedium
119. One Edit AwayMedium
120. Zigzag ConversionMedium
121. Repeated Substring PatternEasy
122. Count and SayMedium
123. Valid InterleavingHard
124. Count Binary SubstringsEasy
125. FactorialEasy
126. N-th Fibonacci ModuloMedium
127. Primes up to NEasy
128. Prime FactorisationEasy
129. Number of DivisorsEasy
130. Sum of DivisorsEasy
131. Perfect NumberEasy
132. Armstrong NumberEasy
133. Reverse an IntegerEasy
134. Palindrome NumberEasy
135. Digital RootEasy
136. LCM of an ArrayEasy
137. Modular ExponentiationMedium
138. Modular InverseMedium
139. Combinations nCrEasy
140. Catalan NumberMedium
141. Digits of N!Medium
142. Collatz StepsEasy
143. Decimal to Any BaseEasy
144. Any Base to DecimalEasy
145. GCD of an ArrayEasy
146. Euler's TotientMedium
147. Sum of Two SquaresMedium
148. Goldbach PairMedium
149. Primes in a RangeMedium
150. Pythagorean TripletsMedium
151. Power of TwoEasy
152. Happy NumberEasy
153. N-th Ugly NumberMedium
154. Excel Column TitleEasy
155. Excel Column NumberEasy
156. Integer Square RootEasy
157. Integer K-th RootMedium
158. Sum of All Digits 1..NHard
159. Sum of Squares 1..NEasy
160. Leap Years in a RangeEasy
161. Clock AngleEasy
162. Triangle TypeEasy
163. Polygon AreaMedium
164. Points in RectangleEasy
165. Sort an ArrayEasy
166. Sort in Descending OrderEasy
167. Sort by Absolute ValueEasy
168. Sort Words by LengthEasy
169. First Position Not Less Than XEasy
170. First and Last OccurrenceEasy
171. Search in Rotated Sorted ArrayMedium
172. Minimum in Rotated Sorted ArrayMedium
173. K-th Smallest ElementEasy
174. Aggressive CowsHard
175. Allocate BooksHard
176. Eating SpeedMedium
177. Median of Two Sorted ArraysHard
178. Count Elements ≤ XEasy
179. Triplets with Zero SumMedium
180. Pair Sum Closest to TargetMedium
181. Contains DuplicateEasy
182. Nearby DuplicateEasy
183. Longest Consecutive SequenceMedium
184. Top K Frequent WordsMedium
185. Valid SudokuMedium
186. Zero-Sum Subarray Exists?Easy
187. Count Distinct ValuesEasy
188. Four Arrays Zero SumMedium
189. Pairs with Equal Digit SumMedium
190. Distinct Pairs with SumMedium
191. First Unique After Each StepMedium
192. Stack OperationsEasy
193. Queue OperationsEasy
194. Min StackMedium
195. Evaluate Postfix ExpressionMedium
196. Infix to PostfixMedium
197. Next Greater Element (Circular)Medium
198. Largest Rectangle in a HistogramHard
199. Remove K DigitsMedium
200. Asteroid CollisionMedium
201. Sliding Window MinimumMedium
202. Decode StringMedium
203. Simplify Unix PathMedium
204. Minimum Brackets to AddMedium
205. Longest Valid ParenthesesHard
206. First Negative in Every WindowEasy
207. Binary Numbers 1 to NEasy
208. The CelebrityMedium
209. All SubsetsMedium
210. All PermutationsMedium
211. Unique PermutationsMedium
212. Combinations of KMedium
213. Combination SumMedium
214. Subset SumMedium
215. N-Queens Solutions CountHard
216. Word SearchMedium
217. Phone Keypad CombinationsMedium
218. Generate ParenthesesMedium
219. Tower of HanoiEasy
220. Grid PathsEasy
221. Palindrome PartitionsMedium
222. Gray CodeMedium
223. Sudoku SolverHard
224. Rat in a MazeMedium
225. House RobberMedium
226. House Robber (Circle)Medium
227. Min Cost Climbing StairsEasy
228. Grid Paths with ObstaclesMedium
229. Minimum Path SumMedium
230. Triangle Minimum PathMedium
231. 0/1 KnapsackMedium
232. Unbounded KnapsackMedium
233. Coin Change — Number of WaysMedium
234. Longest Common SubstringMedium
235. Longest Palindromic SubsequenceMedium
236. Minimum Insertions for PalindromeMedium
237. Word BreakMedium
238. Partition Equal Subset SumMedium
239. Target Sum with SignsMedium
240. Number of Longest Increasing SubsequencesHard
241. Maximum Product SubarrayMedium
242. Jump GameMedium
243. Minimum JumpsMedium
244. Rod CuttingMedium
245. Egg DroppingHard
246. Matrix Chain MultiplicationHard
247. Ways to Make an ExpressionHard
248. Paint the FenceMedium
249. Count Binary Search TreesMedium
250. Dice Sum WaysMedium
251. Longest Bitonic SubsequenceMedium
252. Largest Square of OnesMedium
253. Distinct Subsequence CountHard
254. Wildcard MatchingHard
255. Regular Expression MatchingHard
256. Stock Trading with CooldownMedium
257. Stock Trading with K TransactionsHard
258. Minimum Subset DifferenceMedium
259. Count Subsets with SumMedium
260. Longest Arithmetic SubsequenceMedium
261. Frog Jump with KEasy
262. Vacation PlanMedium
263. Perfect SquaresMedium
264. Binary Strings Without Consecutive OnesEasy
265. Domino Tiling 2×NEasy
266. Max Sum without Three ConsecutiveMedium
267. Maximum Meetings in One RoomEasy
268. Fractional KnapsackEasy
269. Minimum Notes (Indian Currency)Easy
270. Job Sequencing with DeadlinesMedium
271. Minimum Arrows to Burst BalloonsMedium
272. Remove Overlapping IntervalsMedium
273. Gas Station CircuitMedium
274. Candy DistributionHard
275. Assign CookiesEasy
276. Boats to Save PeopleMedium
277. Largest NumberMedium
278. Minimum Sum from DigitsEasy
279. Shortest Path (Unweighted)Easy
280. Connected ComponentsEasy
281. Cycle in an Undirected GraphMedium
282. Cycle in a Directed GraphMedium
283. Topological OrderMedium
284. Shortest Path (Weighted)Medium
285. Minimum Spanning TreeMedium
286. Is the Graph Bipartite?Medium
287. Diameter of a TreeMedium
288. Tree Height from Parent ArrayEasy
289. Friend CirclesEasy
290. Rotting OrangesMedium
291. Count Regions of Same ColourEasy
292. Word LadderHard
293. Lowest Common AncestorHard
294. Paths in a DAGMedium
295. Knight's Shortest PathMedium
296. Transpose a MatrixEasy
297. Add Two MatricesEasy
298. Multiply Two MatricesMedium
299. Rotate Matrix 90° ClockwiseMedium
300. Spiral OrderMedium
301. Spiral Matrix GeneratorMedium
302. Diagonal DifferenceEasy
303. Row with Maximum SumEasy
304. Set Matrix ZeroesMedium
305. Search a Sorted MatrixMedium
306. Sub-matrix Sum QueriesMedium
307. Island PerimeterEasy
308. Negatives in a Sorted MatrixEasy
309. Toeplitz MatrixEasy
310. Game of Life — One StepMedium
311. Row with Most OnesEasy
312. Count Set BitsEasy
313. Set Bits for 0..NEasy
314. The Single NumberEasy
315. Single Number Among TriplesMedium
316. Reverse BitsEasy
317. Hamming DistanceEasy
318. Total Hamming DistanceMedium
319. Find the Duplicate NumberMedium
320. Sum of All Subset XORsMedium
321. Bitwise AND of a RangeMedium
322. Power of FourEasy
323. Maximum XOR of Two NumbersHard
324. Bits to FlipEasy
325. Two Numbers with Odd CountsMedium
326. Grade CalculatorEasy
327. Electricity BillEasy
328. Loan EMIMedium
329. Day of the WeekMedium
330. Days Between DatesMedium
331. 12-Hour to 24-Hour TimeEasy
332. Seconds to H:M:SEasy
333. Tic-Tac-Toe WinnerEasy
334. ATM WithdrawalEasy
335. Parking FeeEasy
336. Vending Machine ChangeEasy
337. Bank Account StatementMedium
338. Library FineEasy
339. Password StrengthEasy
340. Validate an IPv4 AddressMedium
341. Validate an Email AddressMedium
342. Minesweeper NumbersMedium
343. Elevator TravelEasy
344. Waiting Time at a CounterMedium
345. Traffic Light ColourEasy
346. Word WrapMedium
347. Centre the TextEasy
348. Text HistogramEasy
349. Running MedianHard
350. LRU CacheMedium
351. Snakes and LaddersHard
352. Bowling ScoreHard
353. Number to WordsHard
354. Basic CalculatorHard
355. Inventory OrdersMedium
356. Rainfall StatisticsEasy
357. Cinema Seat BookingMedium
358. Temperature ConverterEasy
359. Shopping Cart TotalEasy
360. Robot MovesEasy
361. Attendance ShortfallEasy
362. Lottery MatchesEasy
363. Reverse a Linked ListEasy
364. Middle of a Linked ListEasy
365. Remove N-th Node from EndMedium
366. Merge Two Sorted ListsEasy
367. Palindrome Linked ListEasy
368. Remove Duplicates from Sorted ListEasy
369. Rotate List RightMedium
370. Add Two Numbers as ListsMedium
371. Partition ListMedium
372. Odd-Even Linked ListMedium
373. Swap Nodes in PairsMedium
374. Reverse Nodes in K-GroupsHard
375. Inorder TraversalEasy
376. Preorder TraversalEasy
377. Postorder TraversalEasy
378. Level Order by LinesEasy
379. Zigzag Level OrderMedium
380. Maximum Depth of a Binary TreeEasy
381. Minimum DepthEasy
382. Count and Sum of NodesEasy
383. Count LeavesEasy
384. Symmetric TreeEasy
385. Height-Balanced TreeEasy
386. Diameter of a Binary TreeEasy
387. Root-to-Leaf Path SumEasy
388. Validate a BSTMedium
389. K-th Smallest in a BSTMedium
390. LCA in a BSTEasy
391. Build a BST by InsertionEasy
392. Range Sum of a BSTEasy
393. Right Side ViewMedium
394. Left Side ViewEasy
395. Level Sums and Widest LevelMedium
396. Same TreeEasy
397. K Largest ElementsEasy
398. Merge K Sorted ListsHard
399. Connect Ropes at Minimum CostMedium
400. K-th Largest in a StreamMedium
401. Task SchedulerMedium
402. Container With Most WaterMedium
403. Two Sum II (Sorted Input)Medium
404. 3Sum ClosestMedium
405. Remove ElementEasy
406. Squares of a Sorted ArrayEasy
407. Palindrome After One DeletionEasy
408. Backspace String CompareEasy
409. Longest MountainMedium
410. Windows With Average ≥ ThresholdMedium
411. Max Consecutive Ones With K FlipsMedium
412. Fruit Into BasketsMedium
413. Subarray Product Less Than KMedium
414. Subarrays With Exactly K Odd NumbersMedium
415. Binary Subarrays With SumMedium
416. Longest Substring With K Distinct CharactersMedium
417. Permutation in StringMedium
418. Find All Anagrams in a StringMedium
419. Maximum Vowels in a Substring of Length KMedium
420. Grumpy Bookstore OwnerMedium
421. Maximum Points From CardsMedium
422. Subarray Sums Divisible by KMedium
423. Longest Equal 0s and 1sMedium
424. Longest Ones After Deleting One ElementMedium
425. Insert IntervalMedium
426. Interval List IntersectionsMedium
427. Can Attend All MeetingsEasy
428. Summary RangesEasy
429. Missing RangesEasy
430. Find All DuplicatesMedium
431. First Missing PositiveHard
432. Find All Missing NumbersEasy
433. Sort Array by Parity (Stable)Easy
434. Relative Sort ArrayEasy
435. H-IndexMedium
436. Array Partition (Max Sum of Pair Minimums)Easy
437. Maximum GapMedium
438. K-th Missing Positive NumberEasy
439. Range Updates With a Difference ArrayMedium
440. Car PoolingMedium
441. Corporate Flight BookingsMedium
442. Valid Triangle NumberMedium
443. Minimum Moves to Equal ElementsMedium
444. Minimum Moves to Equal Elements IIMedium
445. Longest Harmonious SubsequenceEasy
446. Degree of an ArrayEasy
447. Number of Good PairsEasy
448. Kids With the Greatest Number of CandiesEasy
449. Shuffle the ArrayEasy
450. How Many Numbers Are SmallerEasy
451. Lemonade ChangeEasy
452. Poison DurationEasy
453. Can Place FlowersEasy
454. Distribute CandiesEasy
455. Maximum Units on a TruckEasy
456. Minimum Cost to Move ChipsEasy
457. Two City SchedulingMedium
458. Partition LabelsMedium
459. Queue Reconstruction by HeightMedium
460. Largest Perimeter TriangleEasy
461. Richest Customer WealthEasy
462. Ransom NoteEasy
463. Jewels and StonesEasy
464. Uncommon Words From Two SentencesEasy
465. Custom Sort StringMedium
466. Longest Palindrome You Can BuildEasy
467. Determine if Two Strings Are CloseMedium
468. Maximum Number of BalloonsEasy
469. Bulls and CowsMedium
470. Find the DifferenceEasy
471. Add BinaryEasy
472. Add StringsEasy
473. Multiply StringsMedium
474. Compare Version NumbersMedium
475. Length of Last WordEasy
476. License Key FormattingEasy
477. Detect CapitalEasy
478. Student Attendance RecordEasy
479. Robot Return to OriginEasy
480. Shortest Distance to a CharacterEasy
481. Reverse Each WordEasy
482. Reverse String IIEasy
483. Defang an IP AddressEasy
484. Final Value After OperationsEasy
485. Goal Parser InterpretationEasy
486. Count Consistent StringsEasy
487. Steps to Reduce a Number to ZeroEasy
488. Water BottlesEasy
489. Bulb SwitcherMedium
490. Broken CalculatorMedium
491. Integer ReplacementMedium
492. Valid Perfect SquareEasy
493. Arranging CoinsEasy
494. Power of ThreeEasy
495. Maximum 69 NumberEasy
496. Self-Dividing NumbersEasy
497. N-th Tribonacci NumberEasy
498. Count Odd Numbers in a RangeEasy
499. Product Minus Sum of DigitsEasy
500. Nim GameEasy
501. High EarnersSQLEasy
502. Employees per DepartmentSQLEasy
503. Second Highest SalarySQLMedium
504. Employee with DepartmentSQLEasy
505. Customers Who Never OrderedSQLEasy
506. Total Spent per CustomerSQLMedium
507. Duplicate EmailsSQLEasy
508. Above Department AverageSQLMedium
509. Top Earner per DepartmentSQLHard
510. Running Total of OrdersSQLHard
511. Managers with Two or More ReportsSQLMedium
512. Departments with No EmployeesSQLEasy
513. All StudentsSQLEasy
514. Students from ChennaiSQLEasy
515. Missing CitySQLEasy
516. Students per ClassSQLEasy
517. Average Score per SubjectSQLEasy
518. Total Marks per StudentSQLMedium
519. Topper in Each SubjectSQLHard
520. Students Without MarksSQLEasy
521. Assign GradesSQLMedium
522. Passed Every Subject TakenSQLMedium
523. Rank Students in ClassSQLHard
524. Youngest StudentSQLEasy
525. Born in 2010SQLEasy
526. Names Starting with a VowelSQLEasy
527. Above the School AverageSQLMedium
528. Books by an AuthorSQLEasy
529. Books per GenreSQLEasy
530. Currently Borrowed BooksSQLEasy
531. Most Borrowed BookSQLMedium
532. Books Never BorrowedSQLEasy
533. Loan DurationsSQLMedium
534. Loans per MemberSQLMedium
535. Authors with Several BooksSQLEasy
536. Classic BooksSQLEasy
537. Available CopiesSQLHard
538. Members Who Joined in 2024SQLEasy
539. First Loan of Each MemberSQLHard
540. Salary BandsSQLMedium
541. Department PayrollSQLEasy
542. Recent HiresSQLEasy
543. Employee and ManagerSQLMedium
544. Third Highest SalarySQLMedium
545. Share of Department PayrollSQLHard
546. Email DomainsSQLMedium
547. Monthly RevenueSQLMedium
548. Orders by CitySQLEasy
549. Customer with the Largest OrderSQLEasy
550. Repeat CustomersSQLEasy
551. Order vs Previous OrderSQLHard
552. Revenue Share by CustomerSQLMedium

552 of 552 problems