Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
788 views

Clockwise rotate a matrix in Scala

Given a matrix, clockwise rotate elements in it. Examples: ...
vikrant's user avatar
  • 405
1 vote
2 answers
518 views

Print matrix in spiral order in Scala

Problem: Given a square or rectangular matrix, print its element in spiral order. For example, if input matrix is this: ...
vikrant's user avatar
  • 405
3 votes
2 answers
197 views

Attempting to eliminate var (and imperative style) from my Piece class

I've been cooking with gas since I got Daniel C Sobral's help on my last question. I am now re-reading Odersky's "Programming in Scala, 2nd Edition" (finished my first reading about this time last ...
chaotic3quilibrium's user avatar